mirror of https://github.com/torvalds/linux.git
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.c | ||
| tsi721.h | ||
| tsi721_dma.c | ||