|
@@ -400,7 +400,7 @@ int bnx2i_get_stats(void *handle)
|
|
|
if (!stats)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
- memcpy(stats->version, DRV_MODULE_VERSION, sizeof(stats->version));
|
|
|
+ strlcpy(stats->version, DRV_MODULE_VERSION, sizeof(stats->version));
|
|
|
memcpy(stats->mac_add1 + 2, hba->cnic->mac_addr, ETH_ALEN);
|
|
|
|
|
|
stats->max_frame_size = hba->netdev->mtu;
|