mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Revert "char: misc: assign file->private_data in all cases"
This reverts commit 585d98e00b, as it
breaks the FUSE misc driver.
Reported-by: Sedat Dilek <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
cee4fbd6cd
commit
380672698b
1 changed files with 1 additions and 1 deletions
|
|
@ -143,8 +143,8 @@ static int misc_open(struct inode * inode, struct file * file)
|
|||
err = 0;
|
||||
old_fops = file->f_op;
|
||||
file->f_op = new_fops;
|
||||
file->private_data = c;
|
||||
if (file->f_op->open) {
|
||||
file->private_data = c;
|
||||
err=file->f_op->open(inode,file);
|
||||
if (err) {
|
||||
fops_put(file->f_op);
|
||||
|
|
|
|||
Loading…
Reference in a new issue