]> git.baikalelectronics.ru Git - kernel.git/commit
rsxx: Fix possible kernel panic with invalid config.
authorPhilip J Kelleher <pjk1939@linux.vnet.ibm.com>
Fri, 18 Oct 2013 22:12:35 +0000 (17:12 -0500)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2013 16:10:29 +0000 (09:10 -0700)
commit6ae299ba5f86069e23c5fe46612471f771d2bd55
tree0b4ef99eeb6996ec70d6e203b03fc452732df52c
parent737804cb7d6f732c7d462750879148fd44889d31
rsxx: Fix possible kernel panic with invalid config.

This patch fixes a possible Kernel Panic on driver load if
the configuration on the card is messed up or not yet set.
The driver could possible give a 32 bit unsigned all Fs to
the kernel as the device's block size.

Now we only write the block size to the kernel if the
configuration from the card is valid.

Also, driver version is being updated.

Signed-off-by: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rsxx/dev.c
drivers/block/rsxx/rsxx_priv.h