Skip to content

Commit e89dbeb

Browse files
tammyleinoarnopo
authored andcommitted
remoteproc_virtio_notify could use null notify operation
remoteproc_virtio_notify updated to check notify operation before invoking. Signed-off-by: Tammy Leino <tammy_leino@mentor.com>
1 parent 2dcdc61 commit e89dbeb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/remoteproc/remoteproc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,10 @@ static int remoteproc_virtio_notify(void *priv, uint32_t id)
874874
{
875875
struct remoteproc *rproc = priv;
876876

877-
return rproc->ops->notify(rproc, id);
877+
if (rproc->ops->notify)
878+
return rproc->ops->notify(rproc, id);
879+
880+
return 0;
878881
}
879882

880883
struct virtio_device *

0 commit comments

Comments
 (0)