Skip to content
Commit 14e86c01 authored by Wei Yongjun's avatar Wei Yongjun Committed by Daniel Vetter
Browse files

drm/vkms: Fix possible memory leak in _vkms_get_crc()



'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: db7f419c ("drm/vkms: Compute CRC with Cursor Plane")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1536976399-1295-1-git-send-email-weiyongjun1@huawei.com
parent 4f724df7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment