]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] nsp_cs: fix buf overflow
authorJiri Slaby <jirislaby@gmail.com>
Sat, 8 Aug 2009 09:36:06 +0000 (11:36 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 22 Aug 2009 22:52:22 +0000 (17:52 -0500)
commit91728440316a8f12b7b4b6dfe205852a023a478e
tree890c3863601cecdbce624eab70cc8e2e7dacf901
parentb5761dfd46c1cf3d03f74ba7d2f160b18f5469e8
[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>
drivers/scsi/pcmcia/nsp_cs.c