]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix possible memory leak in intel_hdcp_auth_downstream()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 4 Jul 2019 10:45:34 +0000 (10:45 +0000)
committerJani Nikula <jani.nikula@intel.com>
Thu, 1 Aug 2019 10:08:34 +0000 (13:08 +0300)
commitb905bf44cddb2685fd1716ac377d0e571ac8faae
tree7ee0c13ab0b686f54285216979a3fcb1eb2e6916
parent910e52b6c8dc59fda4381fb8d88c9e4917bbc1ed
drm/i915: fix possible memory leak in intel_hdcp_auth_downstream()

'ksv_fifo' is malloced in intel_hdcp_auth_downstream() and should be
freed before leaving from the error handling cases, otherwise it will
cause memory leak.

Fixes: 3553e3c6db4e ("drm/i915: SRM revocation check for HDCP1.4 and 2.2")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190704104534.12508-1-weiyongjun1@huawei.com
drivers/gpu/drm/i915/display/intel_hdcp.c