Commit 6a5e3ac4 authored by Randy Dunlap's avatar Randy Dunlap Committed by Stephen Hemminger

[PATCH] janitor: hermes: delete verify_area call

Hi,
Please apply to 2.6.0-test5-current.

Thanks,
--
~Randy


From: Domen Puncer <domen@coderock.org>

IMO, that verify_area wasn't needed.



 linux-260-t5bk12-kj-rddunlap/drivers/net/wireless/orinoco.c |    4 ----
 1 files changed, 4 deletions(-)
parent dc12d359
...@@ -3833,10 +3833,6 @@ orinoco_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) ...@@ -3833,10 +3833,6 @@ orinoco_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
{ SIOCIWLASTPRIV, 0, 0, "dump_recs" }, { SIOCIWLASTPRIV, 0, 0, "dump_recs" },
}; };
err = verify_area(VERIFY_WRITE, wrq->u.data.pointer, sizeof(privtab));
if (err)
break;
wrq->u.data.length = sizeof(privtab) / sizeof(privtab[0]); wrq->u.data.length = sizeof(privtab) / sizeof(privtab[0]);
if (copy_to_user(wrq->u.data.pointer, privtab, sizeof(privtab))) if (copy_to_user(wrq->u.data.pointer, privtab, sizeof(privtab)))
err = -EFAULT; err = -EFAULT;
......
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