Re: [PATCH] cciss: fix invalid use of sizeof in cciss_find_cfgtables()

2013-03-22 Thread Jens Axboe
On Thu, Mar 14 2013, scame...@beardog.cce.hp.com wrote: > On Thu, Mar 14, 2013 at 11:19:45PM +0800, Wei Yongjun wrote: > > From: Wei Yongjun > > > > sizeof() when applied to a pointer typed expression gives the > > size of the pointer, not that of the pointed data. > > > > Signed-off-by: Wei Yon

Re: [PATCH] cciss: fix invalid use of sizeof in cciss_find_cfgtables()

2013-03-14 Thread scameron
On Thu, Mar 14, 2013 at 11:19:45PM +0800, Wei Yongjun wrote: > From: Wei Yongjun > > 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 > --- > drivers/block/cciss.c | 2 +- > 1 file changed, 1 inser

[PATCH] cciss: fix invalid use of sizeof in cciss_find_cfgtables()

2013-03-14 Thread Wei Yongjun
From: Wei Yongjun 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 --- drivers/block/cciss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/cciss.c b/drivers/block/ccis