Loading
iio: sca3000: Fix a resource leak in sca3000_probe()
spi->irq from request_threaded_irq() not released when iio_device_register() fails. Add an return value check and jump to a common error handler when iio_device_register() fails. Fixes: 9a4936dc ("staging:iio:accel:sca3000 Tidy up probe order to avoid a race.") Signed-off-by:Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> Reviewed-by:
Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by:
Jonathan Cameron <Jonathan.Cameron@huawei.com>