Skip to content

Commit

Permalink
remoteproc_virtio_notify could use null notify operation
Browse files Browse the repository at this point in the history
remoteproc_virtio_notify updated to check notify operation before invoking.
Signed-off-by: Tammy Leino <tammy_leino@mentor.com>
  • Loading branch information
tammyleino authored and arnopo committed Apr 15, 2022
1 parent 2dcdc61 commit e89dbeb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/remoteproc/remoteproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,10 @@ static int remoteproc_virtio_notify(void *priv, uint32_t id)
{
struct remoteproc *rproc = priv;

return rproc->ops->notify(rproc, id);
if (rproc->ops->notify)
return rproc->ops->notify(rproc, id);

return 0;
}

struct virtio_device *
Expand Down

0 comments on commit e89dbeb

Please sign in to comment.