Avoid usb reset crashes by making tty_io cdevs truly dynamic

Avoid usb reset crashes by making tty_io cdevs truly dynamic

Signed-off-by: Richard Watts <rrw@kynesim.co.uk>
Reported-by: Duncan Mackintosh <DMackintosh@cbnl.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Richard Watts 2015-05-19 16:06:53 +01:00 committed by Greg Kroah-Hartman
parent 458e2c82c5
commit a3a10ce342
2 changed files with 17 additions and 9 deletions

View file

@ -296,7 +296,7 @@ struct tty_operations {
struct tty_driver {
int magic; /* magic number for this structure */
struct kref kref; /* Reference management */
struct cdev *cdevs;
struct cdev **cdevs;
struct module *owner;
const char *driver_name;
const char *name;