From: Jiri Slaby Date: Sat, 8 Aug 2009 09:36:06 +0000 (+0200) Subject: [SCSI] nsp_cs: fix buf overflow X-Git-Tag: v2.6.32-rc1~689^2~141 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edced191e4512b7795380563634f4d44b21c684a;p=pandora-kernel.git [SCSI] nsp_cs: fix buf overflow In nsp_cs_config there is a wrong struct nsp_cs_configdata allocation. It allocates only sizeof(pointer to nsp_cs_configdata) for a whole structure. Add a dereference to the sizeof to allocate sizeof(nsp_cs_configdata). Signed-off-by: Jiri Slaby Signed-off-by: James Bottomley --- Reading git-diff-tree failed