mbcs: add .owner to mbcs struct file_operations
authorNaveen Kumar Parna <parna.naveenkumar@gmail.com>
Tue, 22 Jan 2019 13:44:02 +0000 (19:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 13:56:00 +0000 (14:56 +0100)
commitf9f7bb9e0a0ca33f65a3deae9ec5e07266908fc5
tree87e1a985ac2808807b65daa5b987e1e194af0f72
parentec74136ded792deed80780a2f8baf3521eeb72f9
mbcs: add .owner to mbcs struct file_operations

Without ".owner = THIS_MODULE" it is possible to crash the kernel
by unloading the mbcs module while someone works with the file.
Fix this by initializing the â€˜struct file_operations' ->owner with
THIS_MODULE.

Signed-off-by: Naveen Kumar Parna <parna.naveenkumar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/mbcs.c