diff options
| author | David Howells <[email protected]> | 2012-05-15 13:11:11 +0000 |
|---|---|---|
| committer | James Morris <[email protected]> | 2012-05-15 14:54:33 +0000 |
| commit | b404aef72fdafb601c945c714164c0ee2b04c364 (patch) | |
| tree | 46efed0307e7c208a254614361bbe08ed160ef52 /lib/mpi/mpicoder.c | |
| parent | Yama: replace capable() with ns_capable() (diff) | |
| download | kernel-b404aef72fdafb601c945c714164c0ee2b04c364.tar.gz kernel-b404aef72fdafb601c945c714164c0ee2b04c364.zip | |
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 <[email protected]>
Signed-off-by: David Howells <[email protected]>
cc: Dan Carpenter <[email protected]>
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions
