Skip to content
Commit 3f6b18ff authored by Richard Retanubun's avatar Richard Retanubun Committed by Ben Warren
Browse files

MIIPHYBB: Return 0xFFFF if the PHY is not asserting TA.



This patch sets the returned value to 0xFFFF if the PHY does not exist
and does not assert Transfer Acknowledge. A NULL check for the value
pointer is also added for buffer overflow protection.

Without this patch 'mii info' will  show 'phantom' devices because the
value will be not be initialized and return with some random value.

Signed-off-by: default avatarRichard Retanubun <RichardRetanubun@RuggedCom.com>
Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
parent 736fead8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment