Al Viro c316e6a308 get_net_ns_by_fd() oopses if proc_ns_fget() returns an error
BTW, looking through the code related to struct net lifetime rules has
caught something else:

struct net *get_net_ns_by_fd(int fd)
{
        ...
        file = proc_ns_fget(fd);
        if (!file)
                goto out;

        ei = PROC_I(file->f_dentry->d_inode);

while in proc_ns_fget() we have two return ERR_PTR(...) and not a single
path that would return NULL.  The other caller of proc_ns_fget() treats
ERR_PTR() correctly...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-06-05 14:11:09 -07:00
..
2011-05-24 13:29:50 -04:00
2010-07-12 12:57:55 -07:00
2011-03-31 11:26:23 -03:00
2011-01-20 16:59:34 -08:00
2010-11-28 18:24:14 -08:00
2010-07-12 12:57:55 -07:00
2011-05-22 21:01:22 -04:00
2011-03-31 11:26:23 -03:00