Jetpack/kernel/nvidia/drivers/platform/tegra/bad.c
dchvs 75c7968d30 Add Jetpack 4.4.1 sources
Jetson Xavier NX, Jetson TX2 Series, Jetson AGX Xavier Series, Jetson Nano, Jetson TX1 [L4T 32.4.4]
2021-01-19 20:45:17 -06:00

16 lines
283 B
C

#include <linux/module.h>
#include <linux/random.h>
#include <linux/string.h>
int __init bad_access(void)
{
static char source[] = "Twenty characters!!!";
char dest[10];
strncpy(dest, source, strlen(source));
pr_err("%s\n", dest);
return 0;
}
module_init(bad_access);