diff options
author | David Teigland <teigland@redhat.com> | 2011-07-11 09:40:53 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2011-07-11 09:40:53 -0400 |
commit | a22ca4806822154c163c6f220f4c2a05adf96fc7 (patch) | |
tree | d6127c1ab201af005e662c79e42b2f5170811b7a /fs/dlm | |
parent | 5d70828a7703b1f68e2fd4ce4b42b28d9623f52b (diff) |
dlm: fix kmalloc args
The gfp and size args were switched.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r-- | fs/dlm/lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index 84c52e6b8810..3c723489079a 100644 --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c | |||
@@ -4129,7 +4129,7 @@ void dlm_recover_waiters_pre(struct dlm_ls *ls) | |||
4129 | struct dlm_message *ms_stub; | 4129 | struct dlm_message *ms_stub; |
4130 | int wait_type, stub_unlock_result, stub_cancel_result; | 4130 | int wait_type, stub_unlock_result, stub_cancel_result; |
4131 | 4131 | ||
4132 | ms_stub = kmalloc(GFP_KERNEL, sizeof(struct dlm_message)); | 4132 | ms_stub = kmalloc(sizeof(struct dlm_message), GFP_KERNEL); |
4133 | if (!ms_stub) { | 4133 | if (!ms_stub) { |
4134 | log_error(ls, "dlm_recover_waiters_pre no mem"); | 4134 | log_error(ls, "dlm_recover_waiters_pre no mem"); |
4135 | return; | 4135 | return; |