KEYS: checking the input id parameters before finding asymmetric key
authorChun-Yi Lee <[email protected]>
Wed, 4 Oct 2017 08:45:09 +0000 (16:45 +0800)
committerDavid Howells <[email protected]>
Wed, 18 Oct 2017 08:12:40 +0000 (09:12 +0100)
commitb3811d36a3e7e7e8ed660bf01151496cf99cf9ed
tree5768d72b30b94cccbe53e01a4b608f7f9b3836b1
parent6a6d2a77addce6bc26ccb53df34478b1593f0fbf
KEYS: checking the input id parameters before finding asymmetric key

For finding asymmetric key, the input id_0 and id_1 parameters can
not be NULL at the same time. This patch adds the BUG_ON checking
for id_0 and id_1.

Cc: David Howells <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Chun-Yi Lee <[email protected]>
Signed-off-by: David Howells <[email protected]>
crypto/asymmetric_keys/asymmetric_type.c