Skip to content

Commit

Permalink
Don't try calling SIOCETHTOOL on UDS.
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Lichvar <[email protected]>
  • Loading branch information
mlichvar authored and richardcochran committed Oct 11, 2012
1 parent c6bb965 commit 937f3ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion port.c
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,9 @@ struct port *port_open(int phc_index,

memset(p, 0, sizeof(*p));

if (sk_interface_phc(interface->name, &checked_phc_index))
if (interface->transport == TRANS_UDS)
; /* UDS cannot have a PHC. */
else if (sk_interface_phc(interface->name, &checked_phc_index))
pr_warning("port %d: get_ts_info not supported", number);
else if (phc_index >= 0 && phc_index != checked_phc_index) {
pr_err("port %d: PHC device mismatch", number);
Expand Down

0 comments on commit 937f3ae

Please sign in to comment.