Merge pull request #1090 from yhcote/fix-doc-typo

patch-author-guide: fix typo in code
This commit is contained in:
Josh Poimboeuf 2020-04-18 09:38:07 -05:00 committed by GitHub
commit 097bfa6455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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++;