Skip to content

Commit 63b8d79

Browse files
commodoandersson
authored andcommitted
rpmsg: virtio_rpmsg_bus: use dev_warn_ratelimited for msg with no recipient
Even though it may be user-space's fault for this error (some application terminated or crashed without cleaning up it's endpoint), the rpmsg communication should not overflow the syslog with too many messages. A dev_warn_ratelimited() seems like a good alternative in case this can occur. Signed-off-by: Alexandru Ardelean <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f0d1be1 commit 63b8d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rpmsg/virtio_rpmsg_bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ static int rpmsg_recv_single(struct virtproc_info *vrp, struct device *dev,
748748
/* farewell, ept, we don't need you anymore */
749749
kref_put(&ept->refcount, __ept_release);
750750
} else
751-
dev_warn(dev, "msg received with no recipient\n");
751+
dev_warn_ratelimited(dev, "msg received with no recipient\n");
752752

753753
/* publish the real size of the buffer */
754754
rpmsg_sg_init(&sg, msg, vrp->buf_size);

0 commit comments

Comments
 (0)