gpu: ion: dereferencing an ERR_PTR
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 22 Jan 2014 14:20:03 +0000 (17:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 19:08:46 +0000 (11:08 -0800)
commit54de9af9f0d7a91e898b6e02199be16dc26a4870
tree6b85472d8e46973b6aeffe33059b2150b872d48c
parent791771e4e0587652e193ac8920e14911045a1dc8
gpu: ion: dereferencing an ERR_PTR

We dereference "heap->task" before checking if it's an ERR_PTR.

Fixes: ea313b5f88ed ('gpu: ion: Also shrink memory cached in the deferred free list')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_heap.c