msm: camera: core : Validate the dev name during the node ioctl handler
Validate the context device name with node name. If device name is not matching return the error. Change-Id: I8dee4e6f64e17b0d1e486077a2c8b0df562a702e Signed-off-by: Rishabh Jain <risjai@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
396a4cc576
commit
40047f58df
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "cam_fd_context.h"
|
||||
#include "cam_trace.h"
|
||||
|
||||
static const char fd_dev_name[] = "fd";
|
||||
static const char fd_dev_name[] = "cam-fd";
|
||||
|
||||
/* Functions in Available state */
|
||||
static int __cam_fd_ctx_acquire_dev_in_available(struct cam_context *ctx,
|
||||
|
Reference in New Issue
Block a user