Re: [PATCH 1/2] crypto: scompress: return proper error code for allocation failure

2019-04-07 Thread Herbert Xu
On Fri, Mar 29, 2019 at 02:09:55PM +0100, Sebastian Andrzej Siewior wrote: > 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 an

[PATCH 1/2] crypto: scompress: return proper error code for allocation failure

2019-03-29 Thread Sebastian Andrzej Siewior
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