tty/vt: Return EBUSY if deallocating VT1 and it is busy
authorRoss Lagerwall <rosslagerwall@gmail.com>
Fri, 14 Jun 2013 22:24:25 +0000 (23:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 19:37:29 +0000 (12:37 -0700)
commitef223fb3d1d61c2a95a89cdc02f8e86dac96ddc3
treeaf86ef5993496aa476bb0a487dcd38b7f2890ac2
parent7d132055814ef17a6c7b69f342244c410a5e000f
tty/vt: Return EBUSY if deallocating VT1 and it is busy

Commit 421b40a6286e ("tty/vt: Fix vc_deallocate() lock order") changed
the behavior when deallocating VT 1.  Previously if trying to
deallocate VT1 and it is busy, we would return EBUSY.  The commit
changed this to return 0 (success).

This commit restores the old behavior.

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
Tested-by: Mikael Pettersson <mikpe@it.uu.se>
Acked-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt_ioctl.c