Re: [autofs] [PATCH] autofs4: Do not potentially dereference NULL pointer returned by fget() in autofs_dev_ioctl_setpipefd()

2011-01-24 Thread Jesper Juhl
Hi Ian, On Sat, 18 Dec 2010, Jesper Juhl wrote: Hi, In fs/autofs4/dev-ioctl.c::autofs_dev_ioctl_setpipefd() we call fget(), which may return NULL, but we do not explicitly test for that NULL return so we may end up dereferencing a NULL pointer - bad. When I originally submitted this

Re: [autofs] [PATCH] autofs4: Do not potentially dereference NULL pointer returned by fget() in autofs_dev_ioctl_setpipefd()

2011-01-24 Thread Jesper Juhl
On Mon, 24 Jan 2011, Jesper Juhl wrote: Hi Ian, On Sat, 18 Dec 2010, Jesper Juhl wrote: Hi, In fs/autofs4/dev-ioctl.c::autofs_dev_ioctl_setpipefd() we call fget(), which may return NULL, but we do not explicitly test for that NULL return so we may end up dereferencing a NULL