mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 05:33:09 +00:00
d5b6e6eba3
When kfifo_alloc fails, the refcount of chdev->dev is left incremental.
We should use put_device(&chdev->dev) to decrease the ref count of
chdev->dev to avoid refcount leak.
Link: https://lkml.kernel.org/r/20221203085721.13146-1-caixinchen1@huawei.com
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
rio_mport_cdev.c | ||
tsi721_dma.c | ||
tsi721.c | ||
tsi721.h |