Skip to content
Commit 0559d8dc authored by Roland Dreier's avatar Roland Dreier
Browse files

IB/core: Don't return EINVAL from sysfs rate attribute for invalid speeds



Commit e9319b0c ("IB/core: Fix SDR rates in sysfs") changed our
sysfs rate attribute to return EINVAL to userspace if the underlying
device driver returns an invalid rate.  Apparently some drivers do this
when the link is down and some userspace pukes if it gets an error when
reading this attribute, so avoid a regression by not return an error to
match the old code.

Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent d2ef4068
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment