Thread (3 messages) flat view 3 messages, 2 authors, 2012-06-13

Re: [PATCH 1/2] serial: sh-sci: Fix probe error paths

From: Paul Mundt <hidden>
Date: 2012-06-13 01:36:57
Also in: linux-sh

On Wed, Jun 13, 2012 at 12:28:23AM +0200, Laurent Pinchart wrote:
When probing fails, the driver must not try to cleanup resources that
have not been initialized. Fix this.
On Wed, Jun 13, 2012 at 12:28:24AM +0200, Laurent Pinchart wrote:
The driver supports a maximum number of ports configurable at compile
time. Make sure the probe() method fails when registering a port that
exceeds the maximum instead of returning success without registering the
port.

This fixes a crash at system suspend time, when the driver tried to
suspend a non-registered port using the UART core.
Both applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help