diff options
author | Cai Xinchen <[email protected]> | 2022-12-03 08:57:21 +0000 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2022-12-11 19:30:20 -0800 |
commit | d5b6e6eba3af11cb2a2791fa36a2524990fcde1a (patch) | |
tree | fe0f0ed42c83dce7d7f238a1c0a3d372a79ff6ae /drivers/android/binder_alloc.c | |
parent | 204c2f535d05d52bd7334629557087f9983e6879 (diff) |
rapidio: devices: fix missing put_device in mport_cdev_open
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/[email protected]
Fixes: e8de370188d0 ("rapidio: add mport char device driver")
Signed-off-by: Cai Xinchen <[email protected]>
Cc: Alexandre Bounine <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Jakob Koschel <[email protected]>
Cc: John Hubbard <[email protected]>
Cc: Matt Porter <[email protected]>
Cc: Wang Weiyang <[email protected]>
Cc: Yang Yingliang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/android/binder_alloc.c')
0 files changed, 0 insertions, 0 deletions