]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: android: ion: dummy: fix dereference of ERR_PTR
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 7 Apr 2016 16:32:25 +0000 (22:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 00:40:50 +0000 (17:40 -0700)
commit9f563f1a2a4b448393159b3d526a6657dc4c0fce
treed68066e6e0e7b84b282e475d6c8b3ada3be12251
parent3229ff343c70163b5425e54cce1f313a9be6b85e
staging: android: ion: dummy: fix dereference of ERR_PTR

ion_device_create() can fail and if it fails then it returns the error
value in ERR_PTR.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Reviewed-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_dummy_driver.c