spi: potential memleak in spidev_ioctl
authorFlorin Malita <fmalita@gmail.com>
Wed, 23 May 2007 20:57:45 +0000 (13:57 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 24 May 2007 03:14:12 +0000 (20:14 -0700)
commit9bea3f29fc626e190f012c4ad5f8a9e9a2f26cf6
tree156a6c3cb913aef5bf8244e6333802950f8132b8
parent6087b2dab2c914268b1a50882edbbad82bfefd29
spi: potential memleak in spidev_ioctl

'ioc' should be deallocated if __copy_from_user fails (found by Coverity
- CID 1644).

Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spidev.c