Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 60424 | Differences between
and this patch

Collapse All | Expand All

(-)./ath/if_ath.c (-3 / +3 lines)
Lines 4557-4563 Link Here
4557
4557
4558
static int
4558
static int
4559
ath_sysctl_halparam(ctl_table *ctl, int write, struct file *filp,
4559
ath_sysctl_halparam(ctl_table *ctl, int write, struct file *filp,
4560
	void *buffer, size_t *lenp)
4560
	void *buffer, size_t *lenp,loff_t *ppos)
4561
{
4561
{
4562
	struct ath_softc *sc = ctl->extra1;
4562
	struct ath_softc *sc = ctl->extra1;
4563
	u_int val;
4563
	u_int val;
Lines 4566-4572 Link Here
4566
	ctl->data = &val;
4566
	ctl->data = &val;
4567
	ctl->maxlen = sizeof(val);
4567
	ctl->maxlen = sizeof(val);
4568
	if (write) {
4568
	if (write) {
4569
		ret = proc_dointvec(ctl, write, filp, buffer, lenp);
4569
		ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
4570
		if (ret == 0) {
4570
		if (ret == 0) {
4571
			switch (ctl->ctl_name) {
4571
			switch (ctl->ctl_name) {
4572
			case ATH_SLOTTIME:
4572
			case ATH_SLOTTIME:
Lines 4618-4624 Link Here
4618
		default:
4618
		default:
4619
			return -EINVAL;
4619
			return -EINVAL;
4620
		}
4620
		}
4621
		ret = proc_dointvec(ctl, write, filp, buffer, lenp);
4621
		ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
4622
	}
4622
	}
4623
	return ret;
4623
	return ret;
4624
}
4624
}
(-)./net80211/ieee80211_linux.c (-3 / +3 lines)
Lines 357-363 Link Here
357
357
358
static int
358
static int
359
ieee80211_sysctl_debug(ctl_table *ctl, int write, struct file *filp,
359
ieee80211_sysctl_debug(ctl_table *ctl, int write, struct file *filp,
360
	void *buffer, size_t *lenp)
360
	void *buffer, size_t *lenp, loff_t *ppos)
361
{
361
{
362
	struct ieee80211com *ic = ctl->extra1;
362
	struct ieee80211com *ic = ctl->extra1;
363
	u_int val;
363
	u_int val;
Lines 366-377 Link Here
366
	ctl->data = &val;
366
	ctl->data = &val;
367
	ctl->maxlen = sizeof(val);
367
	ctl->maxlen = sizeof(val);
368
	if (write) {
368
	if (write) {
369
		ret = proc_dointvec(ctl, write, filp, buffer, lenp);
369
		ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
370
		if (ret == 0)
370
		if (ret == 0)
371
			ic->msg_enable = val;
371
			ic->msg_enable = val;
372
	} else {
372
	} else {
373
		val = ic->msg_enable;
373
		val = ic->msg_enable;
374
		ret = proc_dointvec(ctl, write, filp, buffer, lenp);
374
		ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
375
	}
375
	}
376
	return ret;
376
	return ret;
377
}
377
}

Return to bug 60424