commit | 64387b613a43713d0e03d9d43bfbb1727e8475e1 | [log] [tgz] |
---|---|---|
author | Daniel Vetter <daniel.vetter@ffwll.ch> | Wed Dec 10 11:00:29 2014 +0100 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Wed Dec 10 17:47:27 2014 +0100 |
tree | 06d3bdfd27694d2d7f588d32a6b9a0876820a989 | |
parent | 9ad6d99f189c274b42bedd6efc2b31a17ce733a7 [diff] |
drm/i915: Protect against leaks in pipe_crc_set_source Stupid userspace (there is no evil userspace in debugfs by assumption) might provoke a leak since we allocate the new array without holding any locks. Drop in an unconditional kfree to deal with this - kfree can handle NULL. Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>