summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-09-19 23:45:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-25 16:53:38 -0700
commit430b849a5e0ad5875da5bc5e10b072844dcf600f (patch)
tree701da40cf341df149df688d697c4508474c4f467
parent4a10c2ac2f368583138b774ca41fac4207911983 (diff)
downloadop-kernel-dev-430b849a5e0ad5875da5bc5e10b072844dcf600f.zip
op-kernel-dev-430b849a5e0ad5875da5bc5e10b072844dcf600f.tar.gz
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: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/lustre/obdecho/echo_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/obdecho/echo_client.c b/drivers/staging/lustre/lustre/obdecho/echo_client.c
index 2644edf..c8b4344 100644
--- a/drivers/staging/lustre/lustre/obdecho/echo_client.c
+++ b/drivers/staging/lustre/lustre/obdecho/echo_client.c
@@ -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++) {
OpenPOWER on IntegriCloud