Showing error 1355

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: fs/nfs/client.c
Line in file: 1376
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2012-05-21 20:30:05 UTC


Source:

1346        .release        = seq_release,
1347        .owner                = THIS_MODULE,
1348};
1349
1350/*
1351 * open "/proc/fs/nfsfs/servers" which provides a summary of servers with which
1352 * we're dealing
1353 */
1354static int nfs_server_list_open(struct inode *inode, struct file *file)
1355{
1356        struct seq_file *m;
1357        int ret;
1358
1359        ret = seq_open(file, &nfs_server_list_ops);
1360        if (ret < 0)
1361                return ret;
1362
1363        m = file->private_data;
1364        m->private = PDE(inode)->data;
1365
1366        return 0;
1367}
1368
1369/*
1370 * set up the iterator to start reading from the server list and return the first item
1371 */
1372static void *nfs_server_list_start(struct seq_file *m, loff_t *_pos)
1373{
1374        /* lock the list against modification */
1375        spin_lock(&nfs_client_lock);
1376        return seq_list_start_head(&nfs_client_list, *_pos);
1377}
1378
1379/*
1380 * move to next server
1381 */
1382static void *nfs_server_list_next(struct seq_file *p, void *v, loff_t *pos)
1383{
1384        return seq_list_next(v, &nfs_client_list, pos);
1385}
1386
Show full sources