Skip to content
Commit f9f7bb9e authored by Naveen Kumar Parna's avatar Naveen Kumar Parna Committed by Greg Kroah-Hartman
Browse files

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: default avatarNaveen Kumar Parna <parna.naveenkumar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ec74136d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment