Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] virtio_console: missing Fixes trailer for alloc_buf() device
  refcount fix
--

commit 0d2904b89fd07ffc0b8eae0baa3194301466a9a1
Author: Michail Tatas <[email protected]>

> virtio_console: Put device on failure
>
> If dma_alloc_coherent() fails, the buffer is freed but not the
> reference which is acquired before calling dma_alloc_coherent().
> Fix by calling put_device in the error path.
>
> Signed-off-by: Michail Tatas <[email protected]>

[Severity: Low]
This fixes a device reference leak in alloc_buf().  Should the commit
message include:

  Fixes: 1b6370463e88 ("virtio_console: Add support for remoteproc serial")

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/awbGObIpMjR21JSC@michalis-linux?part=1

Reply via email to