forked from rrcarlosr/Jetpack
dchvs
75c7968d30
Jetson Xavier NX, Jetson TX2 Series, Jetson AGX Xavier Series, Jetson Nano, Jetson TX1 [L4T 32.4.4]
16 lines
283 B
C
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);
|