diff options
| author | Joe Hattori <[email protected]> | 2024-12-04 11:13:42 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2024-12-08 16:49:09 +0000 |
| commit | 64f43895b4457532a3cc524ab250b7a30739a1b1 (patch) | |
| tree | 85faf3541e6e25ff2862ee1b86e5395748a7557f /net/unix/af_unix.c | |
| parent | iio: adc: ad9467: Fix the "don't allow reading vref if not available" case (diff) | |
| download | kernel-64f43895b4457532a3cc524ab250b7a30739a1b1.tar.gz kernel-64f43895b4457532a3cc524ab250b7a30739a1b1.zip | |
iio: inkern: call iio_device_put() only on mapped devices
In the error path of iio_channel_get_all(), iio_device_put() is called
on all IIO devices, which can cause a refcount imbalance. Fix this error
by calling iio_device_put() only on IIO devices whose refcounts were
previously incremented by iio_device_get().
Fixes: 314be14bb893 ("iio: Rename _st_ functions to loose the bit that meant the staging version.")
Signed-off-by: Joe Hattori <[email protected]>
Link: https://patch.msgid.link/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
