mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
7d7aa2fd92
This change makes the names of Broadcom targets consistent by using the common notation based on SoC/CPU ID (which is used internally anyway), bcmXXXX instead of brcmXXXX. This is even used for target TITLE in make menuconfig already, only the short target name used brcm so far. Despite, since subtargets range from bcm2708 to bcm2711, it seems appropriate to use bcm27xx instead of bcm2708 (again, as already done for BOARDNAME). This also renames the packages brcm2708-userland and brcm2708-gpu-fw. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Acked-by: Álvaro Fernández Rojas <noltari@gmail.com>
26 lines
790 B
Diff
26 lines
790 B
Diff
From 654ca15f2234ce3677ed7c9eef5de588285b529a Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
Date: Wed, 14 Nov 2018 11:54:46 +0000
|
|
Subject: [PATCH] vcsm: Fix an NULL dereference in the import_dmabuf
|
|
error path
|
|
|
|
resource was dereferenced even though it was NULL.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
---
|
|
drivers/char/broadcom/vc_sm/vmcs_sm.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/char/broadcom/vc_sm/vmcs_sm.c
|
|
+++ b/drivers/char/broadcom/vc_sm/vmcs_sm.c
|
|
@@ -2315,8 +2315,8 @@ int vc_sm_ioctl_import_dmabuf(struct sm_
|
|
return 0;
|
|
|
|
error:
|
|
- resource->res_stats[IMPORT_FAIL]++;
|
|
if (resource) {
|
|
+ resource->res_stats[IMPORT_FAIL]++;
|
|
vc_sm_resource_deceased(resource, 1);
|
|
kfree(resource);
|
|
}
|