From: Takashi Iwai Date: Thu, 4 Dec 2014 10:56:42 +0000 (+0100) Subject: drm: Fix memory leak at error path of drm_read() X-Git-Tag: omap-for-v3.19/fixes-rc1~80^2~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0a0bde32a4668656cdffac677032a101c170c6b;p=pandora-kernel.git drm: Fix memory leak at error path of drm_read() Note that the read manpages explicitly states that the read position is undefined on error. Since EFAULT is just a userspace bug we are therefore fine with just dropping the event on the floor. Signed-off-by: Takashi Iwai [danvet: Add note that just dropping the event is ok.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed