[PATCH] Char: mxser_new, fix twice resource releasing
authorJiri Slaby <jirislaby@gmail.com>
Sat, 10 Feb 2007 09:45:20 +0000 (01:45 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:29 +0000 (10:51 -0800)
commit45257fa9a5070e4c0739af1f81848ad557472b40
tree9d258e4ca9f76a60ab190d2d49c8d0c8f0af3b15
parent18b95576bc6b9ef9270ec778e1d545c0ca8bbbbb
[PATCH] Char: mxser_new, fix twice resource releasing

Because brd->info is not NULLed, resources are released twice.  NULL it in
pci_remove function.  Also take care of retval and releasing in pci_probe --
mxser_initbrd alreasy releases resource, do not do it again in fail path in
probe function.

Cc: Sergei Organov <osv@javad.com>
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mxser_new.c