From: Peter Hurley Date: Wed, 30 Jan 2013 17:43:51 +0000 (-0500) Subject: tty: Document required behavior of tty driver close() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7be88b4ccb62737abe4bf27f9e66e224a70a12c4;p=linux-beck.git tty: Document required behavior of tty driver close() If the tty driver open() fails, the tty driver close() is still called during the resultant tty release. Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index dd976cfb6131..756a60989294 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h @@ -40,6 +40,7 @@ * void (*close)(struct tty_struct * tty, struct file * filp); * * This routine is called when a particular tty device is closed. + * Note: called even if the corresponding open() failed. * * Required method. *