]> git.baikalelectronics.ru Git - kernel.git/commit
iSeries: Fix up viotty_ioctl BKL locking fallout
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2008 00:36:23 +0000 (17:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2008 00:36:23 +0000 (17:36 -0700)
commitb2e248f86577e5252aad76a32c69daae80d7e23d
treeeba6b6cb42ead945ea567d6a29a8c7b7b4669530
parentf3681114966b1e1b14b979efd9997fa3751b68b0
iSeries: Fix up viotty_ioctl BKL locking fallout

The bogus code to call into the n_tty layer got removed in commit
ad9b5265024fbb900f4e21c7a069547e74ae44aa ("Remove bogons from the
iSeries console"), but it left a now uninitialized "return ret;" around.

Not that this code has ever even compiled since the BKL pushdown, since
not only is "ret" no longer initialized, it was never actually declared
even originally.

Replace it with a "return -ENOIOCTLCMD"

Pointed-out-by: Paul Mackerras <paulus@samba.org>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/viocons.c