]> git.baikalelectronics.ru Git - kernel.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)
commit63b9185bee159b821f14cac3f1e22e664de45677
treed68066e6e0e7b84b282e475d6c8b3ada3be12251
parentdecf886f727eb7db038acfe7d9a55792f80991cf
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