From: Peter Huewe Date: Wed, 13 Jun 2012 22:21:40 +0000 (+0200) Subject: staging/xgifb: Add mutext for fb_mmap locking X-Git-Tag: v3.6-rc1~100^2~785 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95649c425fa2805b76f183c27aeed93f159e47cc;p=pandora-kernel.git staging/xgifb: Add mutext for fb_mmap locking This adds a mutex for fb_mmap around smem_start and smem_len so the mutex inside the fb_mmap() is actually used. Changing of these fields before calling the framebuffer_register() are not mutexed. We check whether framebuffer_register has been called by reading fbinfo->count. See 537a1bf0 - "fbdev: add mutex for fb_mmap locking" by Krzysztof Helt for details. Signed-off-by: Peter Huewe Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed