summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-08-08 11:36:06 +0200
committerJames Bottomley <James.Bottomley@suse.de>2009-08-23 00:52:22 +0200
commitedced191e4512b7795380563634f4d44b21c684a (patch)
tree890c3863601cecdbce624eab70cc8e2e7dacf901 /drivers/scsi/scsi.c
parent[SCSI] ch: Check NULL for kmalloc() return (diff)
downloadlinux-edced191e4512b7795380563634f4d44b21c684a.tar.xz
linux-edced191e4512b7795380563634f4d44b21c684a.zip
[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 <jirislaby@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/scsi.c')
0 files changed, 0 insertions, 0 deletions