gpu: ion: Take handle reference in ion_vma_open
authorkfx <kfx@rock-chips.com>
Thu, 22 Dec 2011 12:16:41 +0000 (20:16 +0800)
committerkfx <kfx@rock-chips.com>
Thu, 22 Dec 2011 12:18:46 +0000 (20:18 +0800)
commite1fcd840d7eadd603ce0fa65c98337dab0fe98ae
tree3c5e927241c654514a0b32b42cda8abab42f516a
parentec906de3619866ac95408b5b64a9f18618f1df37
gpu: ion: Take handle reference in ion_vma_open

When ion_vma_open is called, a reference to the handle in
the vma must be taken. Otherwise, if forking occurs,
ion_vma_close will be called twice which will leave one of
the calls with an invalid reference.
drivers/gpu/ion/ion.c