[ewg] Re: [PATCH ofed-1.4.1] Fix backport patch which causes phys_state to show 5: <unknown>

Jack Morgenstein jackm at dev.mellanox.co.il
Mon Apr 6 06:09:37 PDT 2009


On Friday 03 April 2009 22:20, Ralph Campbell wrote:
> If you cat /sys/class/infiniband/<hca>/ports/1/phys_state,
> you will see it returns "5: <unknown>".
> This is because the backport patch core_z0010_sysfs_race.patch
> changed "return sprintf(...);" to "ret = sprintf(...);"
> without adding "break;". Thus, the last sprintf has effect.
> 
Ouch!  I'll fix this now.

- Jack



More information about the ewg mailing list