]> err.no Git - linux-2.6/commit
[PATCH] tokenring: fix module_init error handling
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 28 Oct 2006 18:52:14 +0000 (03:52 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 1 Nov 2006 01:22:05 +0000 (20:22 -0500)
commit9d4df9e0fadfc84cd826e0f7e946691b4d7baee5
treedc1aebc200dfe6b6598167e569b157e2e04176f4
parent06f0015ace46ce9d313ec02d6b13c47c8e795a6c
[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 <jgarzik@pobox.com>
Cc: Mike Phillips <mikep@linuxtr.net>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
 drivers/net/tokenring/proteon.c |    9 +++++++--
 drivers/net/tokenring/skisa.c   |    9 +++++++--
 2 files changed, 14 insertions(+), 4 deletions(-)
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/tokenring/proteon.c
drivers/net/tokenring/skisa.c