From 00813d4dd976cc823fa089840ff2f4a10dd6cd0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Fri, 2 Aug 2019 18:55:55 +0200 Subject: brcm2708: remove linux 4.14 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- ...t-for-finding-user-vc-handle-in-memory-po.patch | 42 ---------------------- 1 file changed, 42 deletions(-) delete mode 100644 target/linux/brcm2708/patches-4.14/950-0149-vcsm-Support-for-finding-user-vc-handle-in-memory-po.patch (limited to 'target/linux/brcm2708/patches-4.14/950-0149-vcsm-Support-for-finding-user-vc-handle-in-memory-po.patch') diff --git a/target/linux/brcm2708/patches-4.14/950-0149-vcsm-Support-for-finding-user-vc-handle-in-memory-po.patch b/target/linux/brcm2708/patches-4.14/950-0149-vcsm-Support-for-finding-user-vc-handle-in-memory-po.patch deleted file mode 100644 index 25945fa370..0000000000 --- a/target/linux/brcm2708/patches-4.14/950-0149-vcsm-Support-for-finding-user-vc-handle-in-memory-po.patch +++ /dev/null @@ -1,42 +0,0 @@ -From ef55290ab88bb9a640bb0ab7213b6827c7207ee6 Mon Sep 17 00:00:00 2001 -From: Sugizaki Yukimasa -Date: Fri, 5 Jan 2018 00:01:30 +0900 -Subject: [PATCH 149/454] vcsm: Support for finding user/vc handle in memory - pool - -vmcs_sm_{usr,vc}_handle_from_pid_and_address() were failing to find -handle if specified user pointer is not exactly the one that the memory -locking call returned even if the pointer is in range of map/resource. -So fixed the functions to match the range. - -Signed-off-by: Sugizaki Yukimasa ---- - drivers/char/broadcom/vc_sm/vmcs_sm.c | 10 ++++++++-- - 1 file changed, 8 insertions(+), 2 deletions(-) - ---- a/drivers/char/broadcom/vc_sm/vmcs_sm.c -+++ b/drivers/char/broadcom/vc_sm/vmcs_sm.c -@@ -276,7 +276,10 @@ static unsigned int vmcs_sm_vc_handle_fr - /* Lookup the resource. */ - if (!list_empty(&sm_state->map_list)) { - list_for_each_entry(map, &sm_state->map_list, map_list) { -- if (map->res_pid != pid || map->res_addr != addr) -+ if (map->res_pid != pid) -+ continue; -+ if (!(map->res_addr <= addr && -+ addr < map->res_addr + map->resource->res_size)) - continue; - - pr_debug("[%s]: global map %p (pid %u, addr %lx) -> vc-hdl %x (usr-hdl %x)\n", -@@ -326,7 +329,10 @@ static unsigned int vmcs_sm_usr_handle_f - /* Lookup the resource. */ - if (!list_empty(&sm_state->map_list)) { - list_for_each_entry(map, &sm_state->map_list, map_list) { -- if (map->res_pid != pid || map->res_addr != addr) -+ if (map->res_pid != pid) -+ continue; -+ if (!(map->res_addr <= addr && -+ addr < map->res_addr + map->resource->res_size)) - continue; - - pr_debug("[%s]: global map %p (pid %u, addr %lx) -> usr-hdl %x (vc-hdl %x)\n", -- cgit v1.2.3