ipack/devices/ipoctal: fix kernel bug when using pppd
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Mon, 10 Dec 2012 10:49:59 +0000 (11:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 02:24:38 +0000 (18:24 -0800)
commit7e5730d7c22267e406454b5cff0c40e4ebf9a0da
treeda9191e21e3db5d93fd3b1050251fff8d1940744
parent69a6b9b1b6aec645d2efa23db2c15ed287e672dd
ipack/devices/ipoctal: fix kernel bug when using pppd

Trying to setup the pppd server to use ipoctal's serial ports, it says the ports
are busy the first time. If the operation is repeated, a kernel bug due to a
dereference of a NULL pointer appears.

Removing the one-access-only setup from the driver, removes this kernel bug.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ipack/devices/ipoctal.c