]> git.baikalelectronics.ru Git - kernel.git/commit
spi/spi_sh_msiof: fix wrong address calculation, which leads to an Oops
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 21 Jan 2011 15:56:47 +0000 (16:56 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 21 Jan 2011 16:26:24 +0000 (09:26 -0700)
commitd71b53c5e569a407c402fe840b612e64c85cc9dd
tree0db7d430e83675414aa97b23b1eb60726a59486d
parent5fea22a48b5812bef4311251c7d5c14da7915d8f
spi/spi_sh_msiof: fix wrong address calculation, which leads to an Oops

NULL + <small offset> != NULL, but reading from that <small offset> address
is usually not a very good idea and often leads to problems, like kernel
Oopses in this case, easily reproducible by writing to an SD-card, used in
SPI mode.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi_sh_msiof.c