mirror of https://github.com/dynup/kpatch
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:
parent
44f31f8d07
commit
ebc776a4fc
|
@ -244,7 +244,7 @@ index 9bff3b28c357..18374fd35bd9 100644
|
|||
+ int *newpid;
|
||||
+ static int ctr = 0;
|
||||
+
|
||||
+ newpid = klp_shadow_get(p, KPATCH_SHADOW_NEWPID,
|
||||
+ newpid = klp_shadow_get_or_alloc(p, KPATCH_SHADOW_NEWPID,
|
||||
+ sizeof(*newpid), GFP_KERNEL,
|
||||
+ NULL, NULL);
|
||||
+ if (newpid)
|
||||
|
|
Loading…
Reference in New Issue