diff options
| author | Andy Lutomirski <[email protected]> | 2016-12-12 20:54:37 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2016-12-14 07:44:16 +0000 |
| commit | 06deeec77a5a689cc94b21a8a91a76e42176685d (patch) | |
| tree | 372862541646467a01b521e5e4328143036268ed /net/lapb/lapb_timer.c | |
| parent | CIFS: Fix a possible double locking of mutex during reconnect (diff) | |
| download | kernel-06deeec77a5a689cc94b21a8a91a76e42176685d.tar.gz kernel-06deeec77a5a689cc94b21a8a91a76e42176685d.zip | |
cifs: Fix smbencrypt() to stop pointing a scatterlist at the stack
smbencrypt() points a scatterlist to the stack, which is breaks if
CONFIG_VMAP_STACK=y.
Fix it by switching to crypto_cipher_encrypt_one(). The new code
should be considerably faster as an added benefit.
This code is nearly identical to some code that Eric Biggers
suggested.
Cc: [email protected] # 4.9 only
Reported-by: Eric Biggers <[email protected]>
Signed-off-by: Andy Lutomirski <[email protected]>
Acked-by: Jeff Layton <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
