mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
dlm: Improve a size determination in dlm_recover_waiters_pre()
Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus Elfring <[email protected]> Signed-off-by: David Teigland <[email protected]>
This commit is contained in:
parent
fbb1008151
commit
102e67d4e3
1 changed files with 1 additions and 1 deletions
|
|
@ -5119,7 +5119,7 @@ void dlm_recover_waiters_pre(struct dlm_ls *ls)
|
|||
int wait_type, stub_unlock_result, stub_cancel_result;
|
||||
int dir_nodeid;
|
||||
|
||||
ms_stub = kmalloc(sizeof(struct dlm_message), GFP_KERNEL);
|
||||
ms_stub = kmalloc(sizeof(*ms_stub), GFP_KERNEL);
|
||||
if (!ms_stub) {
|
||||
log_error(ls, "dlm_recover_waiters_pre no mem");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue