commit | 8a056a1152707567ecfe6a6f26b8414606150936 | [log] [tgz] |
---|---|---|
author | Stefan Wahren <stefan.wahren@i2se.com> | Sun Sep 03 19:06:31 2017 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Oct 12 11:51:19 2017 +0200 |
tree | 8a07daeee3e5740d832c26f42f56a127b34ae090 | |
parent | 8928c5b2d318cd591d499c94ed4dd5c920f5016f [diff] |
staging: vchiq_2835_arm: Fix NULL ptr dereference in free_pagelist commit 974d4d03fc020af4fa4e9e72a86f0fefa37803c5 upstream. This fixes a NULL pointer dereference on RPi 2 with multi_v7_defconfig. The function page_address() could return NULL with enabled CONFIG_HIGHMEM. So fix this by using kmap() instead. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Fixes: 71bad7f08641 ("staging: add bcm2708 vchiq driver") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>