]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: musb_debugfs: don't use the struct file private_data field with seq_files
authorMathias Nyman <mathias.nyman@nokia.com>
Mon, 6 Sep 2010 10:52:01 +0000 (13:52 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Sep 2010 00:18:09 +0000 (17:18 -0700)
commit6c09969e0edfbc991387436eb011d5c7642b2b6a
tree932b4937452c2917683b9d6725a57108f6ee051a
parentdb49cf204b56e7f067063a4c47a704eaf9a381ed
usb: musb_debugfs: don't use the struct file private_data field with seq_files

commit 024cfa5943a7e89565c60b612d698c2bfb3da66a upstream.

seq_files use the private_data field of a file struct for storing a seq_file structure,
data should be stored in seq_file's own private field (e.g. file->private_data->private)
Otherwise seq_release() will free the private data when the file is closed.

Signed-off-by: Mathias Nyman <mathias.nyman@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_debugfs.c