]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: unregister chardev on error
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 27 Mar 2015 09:56:09 +0000 (15:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 11:43:44 +0000 (13:43 +0200)
commit667998ac5f78fa67cce4a188df202b3205f2faf3
tree9068a06f94f7096a5328219646b398a2b029e064
parentd2ef391cd62a22ffc1a3916cbf55e4edc59e0077
staging: unisys: unregister chardev on error

after registering the major numbers if the cdev_add fails then we were
not releasing the major numbers. now we are doing that.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorchipset/file.c