commit | a80e7c83ef22620932c2d6f9d48e5590ff9f6330 | [log] [tgz] |
---|---|---|
author | Deva Ramasubramanian <dramasub@codeaurora.org> | Tue Mar 04 13:16:29 2014 -0800 |
committer | Deva Ramasubramanian <dramasub@codeaurora.org> | Fri Mar 14 17:05:28 2014 -0700 |
tree | 7bb9d283f3ab150d922ea2d1a8c609f6d830f0c9 | |
parent | 9770065b5ad81b6e433432d0eb3c50ea725fb180 [diff] |
videobuf2-core: Avoid locking userpages if no current->mm If vb2_qbuf is called within the context of a kthread with no "user memory map", current->mm will be NULL causing a fault when attempt to lock the non-existent pages. As such, perform a cursory check for a non-NULL current->mm before locking the userspace pages. CRs-Fixed: 623719 Change-Id: I138ba4d1611fae821e723a11b01046e5fc4f9092 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>