Boris Brezillon 6282f12291
spi: ti-qspi: Make sure res_mmap != NULL before dereferencing it
resource_size() is dereferencing the res without checking that it is
not NULL, so we need to do the check before calling resource_size().

Fixes: b95cb394ab59 ("spi: ti-qspi: Implement the spi_mem interface")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-05-17 13:36:00 +09:00
..
2017-07-17 12:09:38 +01:00
2018-04-20 17:53:20 +01:00
2016-07-07 11:44:43 +02:00
2018-05-03 10:27:21 +09:00
2015-12-07 20:09:09 +00:00
2018-05-03 10:27:43 +09:00
2017-08-23 17:12:05 +01:00
2017-01-23 18:09:37 +00:00
2018-04-19 18:17:46 +01:00
2017-08-10 15:50:23 +01:00
2017-05-26 12:41:07 +01:00
2018-05-11 11:34:41 +09:00