+2
−2
Loading
When page reassignment was added to af_alg_pull_tsgl the original loop wasn't updated so it may try to reassign one more page than necessary. Add the check to the reassignment so that this does not happen. Also update the comment which still refers to the obsolete offset argument. Reported-by:<syzbot+d23888375c2737c17ba5@syzkaller.appspotmail.com> Fixes: e870456d ("crypto: algif_skcipher - overhaul memory management") Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>