staging: rpivid: Fix crash when CMA alloc fails
authorJohn Cox <jc@kynesim.co.uk>
Mon, 8 Feb 2021 16:01:37 +0000 (16:01 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:10 +0000 (16:04 +0000)
commitb08aab677bab1cd12ee5b51db45c395ecd831389
tree407c5e783edb31c17234e81d204661642a8cf85c
parent277e85042efd9eadf51259b96f9a764002b16bc9
staging: rpivid: Fix crash when CMA alloc fails

If realloc to increase coeff size fails then attempt to re-allocate
the original size.  If that also fails then flag a fatal error to abort
all further decode.

Signed-off-by: John Cox <jc@kynesim.co.uk>
drivers/staging/media/rpivid/rpivid.h
drivers/staging/media/rpivid/rpivid_h265.c