You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
From b67424dd64ed7700e9316975511b6388f1a31130 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
Date: Fri, 8 Mar 2019 10:38:59 +0000
|
|
Subject: [PATCH 367/782] staging: vc_sm_cma: Remove erroneous misc_deregister
|
|
|
|
Code from the misc /dev node was still present in
|
|
bcm2835_vc_sm_cma_remove, which caused a NULL deref.
|
|
Remove it.
|
|
|
|
See #2885.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
|
---
|
|
drivers/staging/vc04_services/vc-sm-cma/vc_sm.c | 5 -----
|
|
1 file changed, 5 deletions(-)
|
|
|
|
--- a/drivers/staging/vc04_services/vc-sm-cma/vc_sm.c
|
|
+++ b/drivers/staging/vc04_services/vc-sm-cma/vc_sm.c
|
|
@@ -25,7 +25,6 @@
|
|
#include <linux/fs.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/list.h>
|
|
-#include <linux/miscdevice.h>
|
|
#include <linux/module.h>
|
|
#include <linux/mm.h>
|
|
#include <linux/of_device.h>
|
|
@@ -72,7 +71,6 @@ struct sm_pde_t {
|
|
struct sm_state_t {
|
|
struct platform_device *pdev;
|
|
|
|
- struct miscdevice dev;
|
|
struct sm_instance *sm_handle; /* Handle for videocore service. */
|
|
|
|
spinlock_t kernelid_map_lock; /* Spinlock protecting kernelid_map */
|
|
@@ -758,9 +756,6 @@ static int bcm2835_vc_sm_cma_remove(stru
|
|
{
|
|
pr_debug("[%s]: start\n", __func__);
|
|
if (sm_inited) {
|
|
- /* Remove shared memory device. */
|
|
- misc_deregister(&sm_state->dev);
|
|
-
|
|
/* Remove all proc entries. */
|
|
//debugfs_remove_recursive(sm_state->dir_root);
|
|
|