diff options
author | Alexander Strakh <[email protected]> | 2011-02-10 15:01:25 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-02-11 16:12:20 -0800 |
commit | 24a6f5b8589d2abfbf523c59ab1258726edc164f (patch) | |
tree | a62ac7fff1761759f32783cd0b1bfbdda396757b /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | 6e20fb18054c179d7e64c0af43d855b9310a3394 (diff) |
drivers/rtc/rtc-proc.c: add module_put on error path in rtc_proc_open()
In file drivers/rtc/rtc-proc.c seq_open() can return -ENOMEM.
86 if (!try_module_get(THIS_MODULE))
87 return -ENODEV;
88
89 return single_open(file, rtc_proc_show, rtc);
In this case before exiting (line 89) from rtc_proc_open the
module_put(THIS_MODULE) must be called.
Found by Linux Device Drivers Verification Project
Signed-off-by: Alexander Strakh <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions