mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 18:21:35 +03:00
platform: tegra: Remove bad driver
Enabling CONFIG_FORTIFY_SOURCE is resulting into following compilation issue: - error: detected write beyond size of object passed as 1st parameter As this driver is not needed anymore, remove it. This driver is already removed from linux-nvidia repo as part of the following change: https://git-master.nvidia.com/r/c/linux-nvidia/+/2772009 Bug 3870276 Change-Id: If783117ea50bf0415df511faba7bf672978f802a Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2833347 Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
b0d4743a8b
commit
ca3bbfe355
@@ -3,8 +3,6 @@
|
||||
|
||||
LINUXINCLUDE += -I$(srctree.nvidia-oot)
|
||||
|
||||
obj-m += bad.o
|
||||
|
||||
obj-m += firmwares-class.o
|
||||
obj-m += firmwares-inventory.o
|
||||
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
// Copyright (c) 2022, NVIDIA CORPORATION, All rights reserved.
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/random.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
int __init bad_access(void)
|
||||
{
|
||||
static const char source[] = "Twenty characters!!!";
|
||||
char dest[10];
|
||||
|
||||
strncpy(dest, source, strlen(source));
|
||||
pr_err("%s\n", dest);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
module_init(bad_access);
|
||||
|
||||
MODULE_AUTHOR("Dmitry Pervushin <dpervushin@nvidia.com>");
|
||||
MODULE_DESCRIPTION("Tegra bad access driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
Reference in New Issue
Block a user