]> 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>
Mon, 5 Aug 2019 08:43:22 +0000 (11:43 +0300)
commitcb26fc489db4d6ffa0fa05a58f2648c69d55748e
tree9d623d5fb4edf53f1b5b1961be08333671d3d80e
parent1b1e3f6d5a6ff25a6613c83a142ba0d73a10c16d
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: 7d99d4a40afc ("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
(cherry picked from commit de70fdd7d24cd07e51fbec420f8704d956a47949)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_hdcp.c