In the Linux kernel, the following vulnerability has been resolved:
media: venus: vdec: fixed possible memory leak issue
The venushelperallocdpbbufs() implementation allows an early return on an error path when checking the id from idaallocmin() which would not release the earlier buffer allocation.
Move the direct kfree() from the error checking of dmaallocattrs() to the common fail path to ensure that allocations are released on all error paths in this function.
Addresses-Coverity: 1494120 ("Resource leak")