From: Daniel Vetter Date: Wed, 10 Dec 2014 10:00:29 +0000 (+0100) Subject: drm/i915: Protect against leaks in pipe_crc_set_source X-Git-Tag: fixes-v4.0-rc1~91^2~43^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64387b613a43713d0e03d9d43bfbb1727e8475e1;p=pandora-kernel.git 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ä Reviewed-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed