cciss: fix invalid use of sizeof in cciss_find_cfgtables()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 22 Mar 2013 15:11:00 +0000 (09:11 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 22 Mar 2013 18:22:49 +0000 (12:22 -0600)
commitd2b805d89510737ea80c1469f854a16480d19778
treeeb57b56059cab773ff762e409abbb60da1eaa0ac
parent8761a3dc1f07b163414e2215a2cadbb4cfe2a107
cciss: fix invalid use of sizeof in cciss_find_cfgtables()

sizeof() when applied to a pointer typed expression gives the
size of the pointer, not that of the pointed data.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: scameron@beardog.cce.hp.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/cciss.c