diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-09-19 10:50:02 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-06 13:06:02 +0100 |
commit | 4a4206a83fc69782d4ef36d8f5eb28836d8b6814 (patch) | |
tree | 9ac8753e6664b4ad976d4381b2dcc459e68ba560 /arch/mips/include | |
parent | f2824a020746ec60fbb780756e42ac13efb221d0 (diff) | |
download | linux-stable-4a4206a83fc69782d4ef36d8f5eb28836d8b6814.tar.gz linux-stable-4a4206a83fc69782d4ef36d8f5eb28836d8b6814.tar.bz2 linux-stable-4a4206a83fc69782d4ef36d8f5eb28836d8b6814.zip |
iio: imu: adis16400: release allocated memory on failure
[ Upstream commit ab612b1daf415b62c58e130cb3d0f30b255a14d0 ]
In adis_update_scan_mode, if allocation for adis->buffer fails,
previously allocated adis->xfer needs to be released.
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/mips/include')
0 files changed, 0 insertions, 0 deletions