8000 questions: fix order of parameters for Ch 9 Question 2 · jaccopa/Linux-Kernel-Programming@900f1a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 900f1a3

Browse files
committed
questions: fix order of parameters for Ch 9 Question 2
It should be kmalloc(size_t size, gfp_t flags). Signed-off-by: Vincent Fu <vincentfu@gmail.com>
1 parent 955a2b4 commit 900f1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

questions/ch9_qs_assignments.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ instance to __________ via a _______.
1919
void *foo(void)
2020
{
2121
void *v;
22-
struct mys *p = kmalloc(GFP_KERNEL, sizeof(struct mys));
22+
struct mys *p = kmalloc(sizeof(struct mys), GFP_KERNEL);
2323
if (!p)
2424
return -ENOMEM;
2525

0 commit comments

Comments
 (0)
0