[PATCH] Return better error codes if drivers/char/raw.c module init fails
authorRolf Eike Beer <eike-kernel@sf-tec.de>
Fri, 29 Sep 2006 09:00:46 +0000 (02:00 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:16 +0000 (09:18 -0700)
commit3e26a423e78c1bb1ebd29c49d4ae4ccbbacd861b
tree9ef489f3ec27e1d4325ac2a2ed9f0f0031e63ef7
parent416bc51292f977b43b010c6dd937522b90062390
[PATCH] Return better error codes if drivers/char/raw.c module init fails

Currently this module just returns 1 if anything on module init fails. Store
the error code of the different function calls and return their error on
problems.

Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
[ Fixed to not unregister twice on error ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/raw.c