Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 430b849a authored by Thomas Meyer's avatar Thomas Meyer Committed by Greg Kroah-Hartman
Browse files

staging: lustre: Cocci spatch "noderef"



sizeof when applied to a pointer typed expression gives the size of the
pointer.
Found by coccinelle spatch "misc/noderef.cocci"

Signed-off-by: default avatarThomas Meyer <thomas@m3y3r.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4a10c2ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1387,7 +1387,7 @@ echo_copyout_lsm (struct lov_stripe_md *lsm, void *_ulsm, int ulsm_nob)
	if (nob > ulsm_nob)
		return (-EINVAL);

	if (copy_to_user (ulsm, lsm, sizeof(ulsm)))
	if (copy_to_user (ulsm, lsm, sizeof(*ulsm)))
		return (-EFAULT);

	for (i = 0; i < lsm->lsm_stripe_count; i++) {