]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Free write_buf that we allocated with kzalloc.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 23 Aug 2018 20:51:36 +0000 (13:51 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 28 Aug 2018 19:50:43 +0000 (12:50 -0700)
commit3511e73d925a98691b47726dc655c5c724353bb7
treee9d3a2a563f7d5848cacd30ebef270d346e739fe
parent4a0dbd7e8cf999ccfda6caae1056e5f0751b7a85
drm/i915: Free write_buf that we allocated with kzalloc.

We use kzalloc to allocate the write_buf that we use for
i2c transfer on hdcp write. But it seems that we are forgetting
to free the memory that is not needed after i2c transfer is
completed.

Reported-by: Brian J Wood <brian.j.wood@intel.com>
Fixes: 23e75b77034f ("drm/i915: Implement HDCP for HDMI")
Cc: Ramalingam C <ramalingam.c@intel.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: <stable@vger.kernel.org> # v4.17+
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180823205136.31310-1-rodrigo.vivi@intel.com
(cherry picked from commit 62d3a8deaa10b8346d979d0dabde56c33b742afa)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_hdmi.c