#include <linux/fs.h>\r
#include <linux/dma-mapping.h>\r
#include <linux/sched.h>\r
+#include <linux/mutex.h>\r
#include <linux/slab.h>\r
#include <linux/miscdevice.h>\r
#include <linux/virtio.h>\r
\r
static struct virtqueue *vq;\r
\r
+static DEFINE_MUTEX(gl_mutex);\r
\r
/* This is videobuf_vmalloc_to_sg() from videobuf-dma-sg.c with\r
* some modifications\r
struct virtio_gl_header *header =\r
(struct virtio_gl_header *)gldata->buffer;\r
\r
+ mutex_lock(&gl_mutex);\r
+\r
ret = header->buf_size;\r
\r
o_page = (header->buf_size + PAGE_SIZE-1) >> PAGE_SHIFT;\r
out_free:\r
kfree(sg_list);\r
out:\r
+ mutex_unlock(&gl_mutex);\r
return ret;\r
}\r
\r
Package: emulator-kernel-x86
-Version: 1.3.15
+Version: 1.3.16
OS: ubuntu-32, ubuntu-64, windows-32, windows-64, macos-64
Build-host-os: ubuntu-32
Maintainer: Yeong-Kyoon, Lee <yeongkyoon.lee@samsung.com>