]> git.karo-electronics.de Git - linux-beck.git/commit
ide-tape: fix misprint in failure handling in idetape_init()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 29 Apr 2016 22:11:12 +0000 (01:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jul 2016 22:25:30 +0000 (15:25 -0700)
commit79f18a0637033f588accaa05621225c60301514a
tree8a22e03c921308359c3e1648ebf9f71efad76b18
parent40506d402293633f0636e96a7e20c5e688e87563
ide-tape: fix misprint in failure handling in idetape_init()

If driver_register() failed there is no sense to call driver_unregister().
unregister_chrdev() should be called here.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-tape.c