summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-06-13 00:28:24 +0200
committerPaul Mundt <lethal@linux-sh.org>2012-06-13 10:22:10 +0900
commitb6c5ef6f6d3e46d6200b141c30ac000a11b851df (patch)
treea990e8e93deefb12f55075633a6c164e2742dfa7 /include/asm-generic
parent6dae14216c85eea13db7b12c469475c5d30e5499 (diff)
downloadop-kernel-dev-b6c5ef6f6d3e46d6200b141c30ac000a11b851df.zip
op-kernel-dev-b6c5ef6f6d3e46d6200b141c30ac000a11b851df.tar.gz
serial: sh-sci: Make probe fail for ports that exceed the maximum count
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. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-generic')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud