| lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
|
Open Source and information security mailing list archives
| ||
|
Message-ID: <20110125205248.GC2932@psychotron.redhat.com> Date: Tue, 25 Jan 2011 21:52:49 +0100 From: Jiri Pirko <jpirko@...hat.com> To: Jay Vosburgh <fubar@...ibm.com> Cc: netdev@...r.kernel.org, davem@...emloft.net Subject: Re: [PATCH net-next-2.6] bonding: fix return value of bonding_store_slaves_active() Tue, Jan 25, 2011 at 08:22:50PM CET, fubar@...ibm.com wrote: >Jiri Pirko <jpirko@...hat.com> wrote: > >>count is incorrectly returned even in case of fail. Return ret instead. >> >>Signed-off-by: Jiri Pirko <jpirko@...hat.com> > > It looks like bonding_store_carrier has the same problem, could >you fix it up too and resubmit? you are right, I missed that. Will resend. Thanks. Jirka > > -J > > >>diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c >>index 8fd0174..f33155f 100644 >>--- a/drivers/net/bonding/bond_sysfs.c >>+++ b/drivers/net/bonding/bond_sysfs.c >>@@ -1595,7 +1595,7 @@ static ssize_t bonding_store_slaves_active(struct device *d, >> } >> } >> out: >>- return count; >>+ return ret; >> } >> static DEVICE_ATTR(all_slaves_active, S_IRUGO | S_IWUSR, >> bonding_show_slaves_active, bonding_store_slaves_active); > -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists