diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2012-06-14 00:21:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-13 17:13:22 -0700 |
commit | 95649c425fa2805b76f183c27aeed93f159e47cc (patch) | |
tree | fd0507659f28a91413b866c9960ebc9f300fde1b /drivers/staging/xgifb/vb_table.h | |
parent | 176f7842a8c0a19e0947f630d71bb53db312812f (diff) |
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 <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xgifb/vb_table.h')
0 files changed, 0 insertions, 0 deletions