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:
Ketan Patil
2022-12-26 08:05:16 +00:00
committed by mobile promotions
parent b0d4743a8b
commit ca3bbfe355
2 changed files with 0 additions and 25 deletions

View File

@@ -3,8 +3,6 @@
LINUXINCLUDE += -I$(srctree.nvidia-oot)
obj-m += bad.o
obj-m += firmwares-class.o
obj-m += firmwares-inventory.o

View File

@@ -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");