Skip to content

Commit

Permalink
dlm: fix kmalloc args
Browse files Browse the repository at this point in the history
The gfp and size args were switched.

Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
David Teigland committed Jul 11, 2011
1 parent 5d70828 commit a22ca48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/dlm/lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -4129,7 +4129,7 @@ void dlm_recover_waiters_pre(struct dlm_ls *ls)
struct dlm_message *ms_stub;
int wait_type, stub_unlock_result, stub_cancel_result;

ms_stub = kmalloc(GFP_KERNEL, sizeof(struct dlm_message));
ms_stub = kmalloc(sizeof(struct dlm_message), GFP_KERNEL);
if (!ms_stub) {
log_error(ls, "dlm_recover_waiters_pre no mem");
return;
Expand Down

0 comments on commit a22ca48

Please sign in to comment.