From: Oliver Neukum Date: Mon, 19 May 2014 11:53:55 +0000 (+0200) Subject: USB: appledisplay: fix race between reading and writing from the device X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~34^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=552e1f2679b7b766b8b8de3dc6d83d9cd28f28b2;p=pandora-kernel.git USB: appledisplay: fix race between reading and writing from the device The workqueue handler may call appledisplay_bl_get_brightness() while user space calls appledisplay_bl_update_status(). As they share a buffer that must not happen. Use a mutex for mutual exclusion. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed