]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cciss: fix invalid use of sizeof in cciss_find_cfgtables()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 20 Mar 2013 04:07:00 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:28:20 +0000 (16:28 +1100)
commit4df5333c8fcd487b589c663ae01bd1c8e3cdc22e
treeca838e6c00e594b91653c76baecc4d2d43da00ae
parent7bd0772d4c79ce57f6ce43fb2dafb9d97a466161
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: "Stephen M. Cameron" <scameron@beardog.cce.hp.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/cciss.c