aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kunit/example-test.c
diff options
context:
space:
mode:
authorNavid Emamdoost <[email protected]>2019-09-19 15:56:35 +0000
committerJonathan Cameron <[email protected]>2019-10-09 18:11:27 +0000
commit9c0530e898f384c5d279bfcebd8bb17af1105873 (patch)
tree9e9c315fa3700add84a58c7bab6dc57a9b13ba91 /lib/kunit/example-test.c
parentiio: imu: adis16400: release allocated memory on failure (diff)
downloadkernel-9c0530e898f384c5d279bfcebd8bb17af1105873.tar.gz
kernel-9c0530e898f384c5d279bfcebd8bb17af1105873.zip
iio: imu: adis16400: fix memory leak
In adis_update_scan_mode_burst, if adis->buffer allocation fails release the adis->xfer. Signed-off-by: Navid Emamdoost <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/kunit/example-test.c')
0 files changed, 0 insertions, 0 deletions