From: David Teigland Date: Mon, 11 Jul 2011 13:40:53 +0000 (-0500) Subject: dlm: fix kmalloc args X-Git-Tag: firefly_0821_release~3680^2~5015^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a22ca4806822154c163c6f220f4c2a05adf96fc7;p=firefly-linux-kernel-4.4.55.git dlm: fix kmalloc args The gfp and size args were switched. Signed-off-by: David Teigland --- 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) 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;