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:
|
||
|---|---|---|
| .. | ||
| devices | ||
| switches | ||
| Kconfig | ||
| Makefile | ||
| rio-access.c | ||
| rio-driver.c | ||
| rio-scan.c | ||
| rio-sysfs.c | ||
| rio.c | ||
| rio.h | ||
| rio_cm.c | ||