]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vchiq_arm: handle error case of get_user_pages
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 31 Oct 2016 14:39:31 +0000 (14:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 10:05:47 +0000 (11:05 +0100)
commitd76cd7720684498f49cba55f53545270ecc66cd0
treef558dfa88ed0f7c63ae426c5a9be624a512ee4ad
parent52986e824811bb4f67b28809f05d488bd24dee77
staging: vchiq_arm: handle error case of get_user_pages

It's possible that get_user_pages() could fail. So evaluate its
return code and handle this error case properly.

This issue has been found by Cppcheck.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c