freebsd-dev/sys/ofed/drivers
John Baldwin c232b2aebb Rework the previous fix for the IB vs Ethernet sysctl handler to be more
generic and apply to all sysfs attributes:
- Use sysctl_handle_string() instead of reimplementing it.
- Remove trailing newline from the current value before passing it to
  userland and append a newline to the new string value before passing it
  to the attribute's store function.
- Don't leak the temporary buffer if the first error check triggers.
- Revert earlier change to mlx4 port mode handler.

PR:		kern/174213
Submitted by:	Garrett Cooper
Reviewed by:	Shakar Klein @ Mellanox
MFC after:	1 week
2013-07-18 14:06:01 +00:00
..
infiniband Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-27 08:11:48 +00:00
net/mlx4 Rework the previous fix for the IB vs Ethernet sysctl handler to be more 2013-07-18 14:06:01 +00:00