linux/drivers/net/ethernet/qlogic/netxen
Vladimir Zapolskiy 748a7295d7 net: netxen: correct sysfs bin attribute return code
If read() syscall requests unexpected number of bytes from "dimm" binary
attribute file, return EINVAL instead of EPERM.

At the same time pin down sysfs file size to the fixed
sizeof(struct netxen_dimm_cfg), which allows to exploit some missing
sanity checks from kernfs (file boundary checks vs offset etc.)

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-05-27 00:25:33 -04:00
..
Makefile ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
netxen_nic_ctx.c qlogic: use pci_zalloc_consistent 2014-08-08 15:57:29 -07:00
netxen_nic_ethtool.c ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
netxen_nic_hdr.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
netxen_nic_hw.c ethernet: Use eth_<foo>_addr instead of memset 2015-03-03 17:01:36 -05:00
netxen_nic_hw.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
netxen_nic_init.c netxen_nic: use spin_[un]lock_bh around tx_clean_lock (2) 2015-05-09 16:44:46 -04:00
netxen_nic_main.c net: netxen: correct sysfs bin attribute return code 2015-05-27 00:25:33 -04:00
netxen_nic.h netxen_nic: Fix trivial typos in comments 2015-03-01 13:40:22 -05:00