aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorMuchun Song <[email protected]>2021-11-09 02:35:19 +0000
committerLinus Torvalds <[email protected]>2021-11-09 18:02:52 +0000
commit10a6de19cad6efb9b49883513afb810dc265fca2 (patch)
tree93b0a4fb9d9673da36571766bdc69731a5b3d468 /drivers/fpga/fpga-bridge.c
parentseq_file: move seq_escape() to a header (diff)
downloadkernel-10a6de19cad6efb9b49883513afb810dc265fca2.tar.gz
kernel-10a6de19cad6efb9b49883513afb810dc265fca2.zip
seq_file: fix passing wrong private data
DEFINE_PROC_SHOW_ATTRIBUTE() is supposed to be used to define a series of functions and variables to register proc file easily. And the users can use proc_create_data() to pass their own private data and get it via seq->private in the callback. Unfortunately, the proc file system use PDE_DATA() to get private data instead of inode->i_private. So fix it. Fortunately, there only one user of it which does not pass any private data, so this bug does not break any in-tree codes. Link: https://lkml.kernel.org/r/[email protected] Fixes: 97a32539b956 ("proc: convert everything to "struct proc_ops"") Signed-off-by: Muchun Song <[email protected]> Cc: Andy Shevchenko <[email protected]> Cc: Stephen Rothwell <[email protected]> Cc: Florent Revest <[email protected]> Cc: Alexey Dobriyan <[email protected]> Cc: Christian Brauner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions