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, 20 Sep 2010 23:04:56 +0000 (16:04 -0700)
commit024cfa5943a7e89565c60b612d698c2bfb3da66a
tree031e0d89f8066dbd4099f870cbd82fe0aa4d75db
parent2422084a94fcd5038406261b331672a13c92c050
usb: musb_debugfs: don't use the struct file private_data field with seq_files

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_debugfs.c