diff options
| -rw-r--r-- | drivers/staging/lustre/lustre/obdecho/echo_client.c | 2 |
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 2644edf438c1..c8b43442dc74 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) | |||
| 1387 | if (nob > ulsm_nob) | 1387 | if (nob > ulsm_nob) |
| 1388 | return (-EINVAL); | 1388 | return (-EINVAL); |
| 1389 | 1389 | ||
| 1390 | if (copy_to_user (ulsm, lsm, sizeof(ulsm))) | 1390 | if (copy_to_user (ulsm, lsm, sizeof(*ulsm))) |
| 1391 | return (-EFAULT); | 1391 | return (-EFAULT); |
| 1392 | 1392 | ||
| 1393 | for (i = 0; i < lsm->lsm_stripe_count; i++) { | 1393 | for (i = 0; i < lsm->lsm_stripe_count; i++) { |
