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:
Jigarkumar Zala
2019-06-11 11:31:11 -07:00
committed by Gerrit - the friendly Code Review server
부모 396a4cc576
커밋 40047f58df
19개의 변경된 파일83개의 추가작업 그리고 23개의 파일을 삭제

파일 보기

@@ -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>
@@ -9,7 +9,7 @@
#include "cam_debug_util.h"
#include "cam_lrme_context.h"
static const char lrme_dev_name[] = "lrme";
static const char lrme_dev_name[] = "cam-lrme";
static int __cam_lrme_ctx_acquire_dev_in_available(struct cam_context *ctx,
struct cam_acquire_dev_cmd *cmd)