summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorNavid Emamdoost <navid.emamdoost@gmail.com>2019-09-19 10:50:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-06 13:06:02 +0100
commit4a4206a83fc69782d4ef36d8f5eb28836d8b6814 (patch)
tree9ac8753e6664b4ad976d4381b2dcc459e68ba560 /arch/mips
parentf2824a020746ec60fbb780756e42ac13efb221d0 (diff)
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')
0 files changed, 0 insertions, 0 deletions