summaryrefslogtreecommitdiff
path: root/fs/jfs/namei.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-05-15 13:11:11 (GMT)
committerJames Morris <james.l.morris@oracle.com>2012-05-15 14:54:33 (GMT)
commitb404aef72fdafb601c945c714164c0ee2b04c364 (patch)
tree46efed0307e7c208a254614361bbe08ed160ef52 /fs/jfs/namei.c
parent2cc8a71641b4460783ea3bd7a3476043fdf85397 (diff)
downloadlinux-fsl-qoriq-b404aef72fdafb601c945c714164c0ee2b04c364.tar.xz
KEYS: Don't check for NULL key pointer in key_validate()
Don't bother checking for NULL key pointer in key_validate() as all of the places that call it will crash anyway if the relevant key pointer is NULL by the time they call key_validate(). Therefore, the checking must be done prior to calling here. Whilst we're at it, simplify the key_validate() function a bit and mark its argument const. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David Howells <dhowells@redhat.com> cc: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'fs/jfs/namei.c')
0 files changed, 0 insertions, 0 deletions