patch-author-guide: fix typo in code

In shadow-newpid.patch, a new structure member is created using the
klp_shadow_get_or_alloc() routine. The simplified and explained version
of it in the patch author guide has a typo that replaces
klp_shadow_get_or_alloc() with klp_shadow_get().

Signed-off-by: Yannick Cote <ycote@redhat.com>
This commit is contained in:
Yannick Cote 2020-04-17 11:50:06 -04:00
parent 44f31f8d07
commit ebc776a4fc
No known key found for this signature in database
GPG Key ID: 8E09064555C8091B
1 changed files with 3 additions and 3 deletions

View File

@ -244,9 +244,9 @@ index 9bff3b28c357..18374fd35bd9 100644
+ int *newpid;
+ static int ctr = 0;
+
+ newpid = klp_shadow_get(p, KPATCH_SHADOW_NEWPID,
+ sizeof(*newpid), GFP_KERNEL,
+ NULL, NULL);
+ newpid = klp_shadow_get_or_alloc(p, KPATCH_SHADOW_NEWPID,
+ sizeof(*newpid), GFP_KERNEL,
+ NULL, NULL);
+ if (newpid)
+ *newpid = ctr++;