Showing error 1278

User: Jiri Slaby
Error type: Leaving function in locked state
Error type description: Some lock is not unlocked on all paths of a function, so it is leaked
File location: drivers/isdn/capi/kcapi_proc.c
Line in file: 244
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2012-05-21 20:30:05 UTC


Source:

214        return seq_open(file, &seq_applications_ops);
215}
216
217static int
218seq_applstats_open(struct inode *inode, struct file *file)
219{
220        return seq_open(file, &seq_applstats_ops);
221}
222
223static const struct file_operations proc_applications_ops = {
224        .owner                = THIS_MODULE,
225        .open                = seq_applications_open,
226        .read                = seq_read,
227        .llseek                = seq_lseek,
228        .release        = seq_release,
229};
230
231static const struct file_operations proc_applstats_ops = {
232        .owner                = THIS_MODULE,
233        .open                = seq_applstats_open,
234        .read                = seq_read,
235        .llseek                = seq_lseek,
236        .release        = seq_release,
237};
238
239// ---------------------------------------------------------------------------
240
241static void *capi_driver_start(struct seq_file *seq, loff_t *pos)
242{
243        read_lock(&capi_drivers_list_lock);
244        return seq_list_start(&capi_drivers, *pos);
245}
246
247static void *capi_driver_next(struct seq_file *seq, void *v, loff_t *pos)
248{
249        return seq_list_next(v, &capi_drivers, pos);
250}
251
252static void capi_driver_stop(struct seq_file *seq, void *v)
253{
254        read_unlock(&capi_drivers_list_lock);
Show full sources