From: Akinobu Mita Date: Sat, 28 Oct 2006 18:52:14 +0000 (+0900) Subject: [PATCH] tokenring: fix module_init error handling X-Git-Tag: v2.6.19-rc5~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d4df9e0fadfc84cd826e0f7e946691b4d7baee5;p=pandora-kernel.git [PATCH] tokenring: fix module_init error handling - Call platform_driver_unregister() before return when no cards found. (fixes data corruption when no cards found) - Check platform_device_register_simple() return value Cc: Jeff Garzik Cc: Mike Phillips Signed-off-by: Akinobu Mita drivers/net/tokenring/proteon.c | 9 +++++++-- drivers/net/tokenring/skisa.c | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed