summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/multicast.h
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2019-03-29 14:09:55 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-04-08 08:36:16 +0200
commit6a4d1b18ef00a7b182740b7b4d8a0fcd317368f8 (patch)
tree07869c8b028f77343aa984312331f8ae65915b5c /net/batman-adv/multicast.h
parentcrypto: ccp - introduce SEV_GET_ID2 command (diff)
downloadlinux-6a4d1b18ef00a7b182740b7b4d8a0fcd317368f8.tar.xz
linux-6a4d1b18ef00a7b182740b7b4d8a0fcd317368f8.zip
crypto: scompress - return proper error code for allocation failure
If scomp_acomp_comp_decomp() fails to allocate memory for the destination then we never copy back the data we compressed. It is probably best to return an error code instead 0 in case of failure. I haven't found any user that is using acomp_request_set_params() without the `dst' buffer so there is probably no harm. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'net/batman-adv/multicast.h')
0 files changed, 0 insertions, 0 deletions