spi: return error if kmap'd buffers passed to spi_map_buf()
authorVignesh R <vigneshr@ti.com>
Mon, 25 Apr 2016 09:44:00 +0000 (15:14 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 25 Apr 2016 17:55:57 +0000 (18:55 +0100)
commit0569a88f3d1ffed94b15569d53872f16e2351099
tree5e7497a4ef4d1a75c6feced072337ca824e1db8c
parentd7e2ee257038baeb03baef602500368a51ee9eef
spi: return error if kmap'd buffers passed to spi_map_buf()

Current spi_map_buf() implementation supports creates sg_table for
vmalloc'd and kmalloc'd buffers. Therefore return error if kmap'd buffer
(or any other buffer) is passed to spi_map_buf().

Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c