Files
android_kernel_xiaomi_sm8450/drivers/spi
Sudip Mukherjee dd85ebf681 spi: spidev: fix possible NULL dereference
During the last close we are freeing spidev if spidev->spi is NULL, but
just before checking if spidev->spi is NULL we are dereferencing it.
Lets add a check there to avoid the NULL dereference.

Fixes: 9169051617 ("spi: spidev: Don't mangle max_speed_hz in underlying spi device")
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2015-09-11 13:26:38 +01:00
..
2015-06-16 13:08:19 +01:00
2014-12-22 15:32:42 +00:00
2015-03-25 11:54:40 -07:00
2015-03-17 12:15:22 +00:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2014-12-22 15:32:42 +00:00
2015-03-17 12:15:22 +00:00