]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: Fix probe error paths
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 12 Jun 2012 22:28:23 +0000 (00:28 +0200)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 13 Jun 2012 01:22:08 +0000 (10:22 +0900)
commit56ddaf5e3dfeb134f149319714c2f26de260f0ad
treed38f40200b083dcab0f5c2876b14d2da6f9562ce
parentaec5909c002e26a73b0c0b75c617c0b85edd371f
serial: sh-sci: Fix probe error paths

When probing fails, the driver must not try to cleanup resources that
have not been initialized. Fix this.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/tty/serial/sh-sci.c