OSDN Git Service

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)
commit0feb1ed5c51acd5cea3d65221e8693c3c4bb4c8d
treef558dfa88ed0f7c63ae426c5a9be624a512ee4ad
parent6d5f49a9f618806e2826d66215bd38c4dd9b3d16
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