[PATCH] pcmcia: properly handle all errors of register_chrdev
authorDominik Brodowski <linux@dominikbrodowski.net>
Mon, 27 Jun 2005 23:29:00 +0000 (16:29 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 28 Jun 2005 01:03:22 +0000 (18:03 -0700)
commit1a8ceafce5f1e68c28c7ba52fd7e72ab0008eb46
tree35cda6b26cdd92f2f4ed66cc43fc0d82a1ebeb2c
parenta9a55243d4a5f41b0035d36457b87463aa232807
[PATCH] pcmcia: properly handle all errors of register_chrdev

register_chrdev() can return errors (negative) other then -EBUSY, so check
for any negative error code.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pcmcia/pcmcia_ioctl.c