diff options
Diffstat (limited to 'include/trace/events/mdio.h')
-rw-r--r-- | include/trace/events/mdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/mdio.h b/include/trace/events/mdio.h index 0f241cbe00..285b3e4f83 100644 --- a/include/trace/events/mdio.h +++ b/include/trace/events/mdio.h @@ -25,7 +25,7 @@ TRACE_EVENT_CONDITION(mdio_access, ), TP_fast_assign( - strncpy(__entry->busid, bus->id, MII_BUS_ID_SIZE); + strscpy(__entry->busid, bus->id, MII_BUS_ID_SIZE); __entry->read = read; __entry->addr = addr; __entry->regnum = regnum; |