pcmcia: fix error handling in cm4000_cs.c
authorDan Carpenter <error27@gmail.com>
Sun, 18 Apr 2010 19:07:33 +0000 (22:07 +0300)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 19 Apr 2010 14:04:13 +0000 (16:04 +0200)
commit07a71415d5f790385695784a9b0e554412ee95c3
treeb9ce527d511d0f1b50c8b532e484c8bec751a316
parent42d284b986105a6ed5ac386818cae093532b2c55
pcmcia: fix error handling in cm4000_cs.c

In the original code we used -ENODEV as the number of bytes to
copy_to_user() and we didn't release the locks.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Harald Welte <laforge@gnumonks.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/char/pcmcia/cm4000_cs.c