Commit 7bb3f4d2 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] missing copy_to_user check in pc300 wan driver

parent 9c810d74
......@@ -2623,7 +2623,8 @@ int cpc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
sizeof(struct net_device_stats));
if (card->hw.type == PC300_TE)
memcpy(&pc300stats.te_stats,&chan->falc,sizeof(falc_t));
copy_to_user(arg, &pc300stats, sizeof(pc300stats_t));
if (copy_to_user(arg, &pc300stats, sizeof(pc300stats_t)))
return -EFAULT;
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment