aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2017-10-07 03:29:48 +0000
committerHerbert Xu <[email protected]>2017-10-07 04:04:32 +0000
commit0cabf2af6f5ac3c88cb106c4e06087a5a39b8e1e (patch)
tree6d612f29ee44e877b4fb546898f729f135ac9900 /net/switchdev/switchdev.c
parentcrypto: shash - Fix a sleep-in-atomic bug in shash_setkey_unaligned (diff)
downloadkernel-0cabf2af6f5ac3c88cb106c4e06087a5a39b8e1e.tar.gz
kernel-0cabf2af6f5ac3c88cb106c4e06087a5a39b8e1e.zip
crypto: skcipher - Fix crash on zero-length input
The skcipher walk interface doesn't handle zero-length input properly as the old blkcipher walk interface did. This is due to the fact that the length check is done too late. This patch moves the length check forward so that it does the right thing. Fixes: b286d8b1a690 ("crypto: skcipher - Add skcipher walk...") Cc: <[email protected]> Reported-by: Stephan Müller <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions