Patch "Staging: comedi: comedi_fops: Avoid orphaned proc entry" has been added to the 3.18-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
Staging: comedi: comedi_fops: Avoid orphaned proc entry
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
staging-comedi-comedi_fops-avoid-orphaned-proc-entry.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
bf279ece37d2a3eaaa9813fcd7a1d8a81eb29c20Mon Sep 17 00:00:00 2001
From: Cheah Kok Cheong <[email protected]>
Date: Fri, 30 Dec 2016 19:25:52 +0800
Subject: Staging: comedi: comedi_fops: Avoid orphaned proc entry
From: Cheah Kok Cheong <[email protected]>
commit bf279ece37d2a3eaaa9813fcd7a1d8a81eb29c20 upstream.
Move comedi_proc_init to the end to avoid orphaned proc entry if module loading failed.
--- drivers/staging/comedi/comedi_fops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/comedi/comedi_fops.c +3 -3
@@ -2590,9 +2590,6 @@ static int __init comedi_init(void) comedi_class->dev_groups = comedi_dev_groups; -/* XXX requires /proc interface */ -comedi_proc_init (); -/* create devices files for legacy/manual use */ for (i =0 ; i < comedi_num_legacy_minors; i++) {struct comedi_device *dev;
@@ -2610,6 +2607,9 @@ static int __init comedi_init(void)mutex_unlock (&dev->mutex); } +/* XXX requires /proc interface */ +comedi_proc_init (); +return 0 ; }module_init (comedi_init);
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/staging-comedi-comedi_fops-avoid-orphaned-proc-entry.patch