mirror of
https://github.com/torvalds/linux.git
synced 2026-12-06 05:14:35 +00:00
- 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 <[email protected]> Cc: Mike Phillips <[email protected]> Signed-off-by: Akinobu Mita <[email protected]> drivers/net/tokenring/proteon.c | 9 +++++++-- drivers/net/tokenring/skisa.c | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) Signed-off-by: Jeff Garzik <[email protected]>