mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] md: fix /proc/mdstat refcounting
I have seen mdadm oops after successfully unloading md module. This patch privents from unloading md module while mdadm is polling /proc/mdstat. Cc: Neil Brown <[email protected]> Signed-off-by: Akinbou Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a649fd9271
commit
e24650c2e7
1 changed files with 1 additions and 0 deletions
|
|
@ -4912,6 +4912,7 @@ static unsigned int mdstat_poll(struct file *filp, poll_table *wait)
|
|||
}
|
||||
|
||||
static struct file_operations md_seq_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = md_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
|
|
|||
Loading…
Reference in a new issue