Re: [PATCH -next] drm/vkms: Fix possible memory leak in _vkms_get_crc()

2018-09-21 Thread Daniel Vetter
On Sat, Sep 15, 2018 at 01:53:19AM +, Wei Yongjun wrote: > 'vaddr_out' is malloced in _vkms_get_crc() and should be freed before > leaving from the error handling cases, otherwise it will cause memory > leak. > > Fixes: db7f419c06d7 ("drm/vkms: Compute CRC with Cursor Plane") > Signed-off-by:

[PATCH -next] drm/vkms: Fix possible memory leak in _vkms_get_crc()

2018-09-17 Thread Wei Yongjun
'vaddr_out' is malloced in _vkms_get_crc() and should be freed before leaving from the error handling cases, otherwise it will cause memory leak. Fixes: db7f419c06d7 ("drm/vkms: Compute CRC with Cursor Plane") Signed-off-by: Wei Yongjun --- drivers/gpu/drm/vkms/vkms_crc.c | 1 + 1 file changed,