aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/n_hdlc.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2019-10-04 15:04:11 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-04 15:14:20 +0200
commit5e9bd2d70ae7c00a95a22994abf1eef728649e64 (patch)
tree6d92b2e7232500e8370eeec4176436c2af6e3e44 /drivers/tty/n_hdlc.c
parentserial: uartlite: fix exit path null pointer (diff)
downloadlinux-dev-5e9bd2d70ae7c00a95a22994abf1eef728649e64.tar.xz
linux-dev-5e9bd2d70ae7c00a95a22994abf1eef728649e64.zip
serial: uartps: Fix uartps_major handling
There are two parts which should be fixed. The first one is to assigned uartps_major at the end of probe() to avoid complicated logic when something fails. The second part is initialized uartps_major number to 0 when last device is removed. This will ensure that on next probe driver will ask for new dynamic major number. Fixes: ab262666018d ("serial: uartps: Use the same dynamic major number for all ports") Reported-by: Paul Thomas <pthomas8589@gmail.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Link: https://lore.kernel.org/r/d2652cda992833315c4f96f06953eb547f928918.1570194248.git.michal.simek@xilinx.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_hdlc.c')
0 files changed, 0 insertions, 0 deletions