diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2016-01-26 11:24:24 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-01-27 15:57:20 +0100 |
commit | 21909baf57085994eb35089626d68d1b5b9619f7 (patch) | |
tree | 21fc7bc209a3bee8d3d26b4dd99623516f6d4e29 /drivers | |
parent | 7e5281fee4b6a1f1568aac396380feeaecbd349e (diff) | |
download | u-boot-imx-21909baf57085994eb35089626d68d1b5b9619f7.zip u-boot-imx-21909baf57085994eb35089626d68d1b5b9619f7.tar.gz u-boot-imx-21909baf57085994eb35089626d68d1b5b9619f7.tar.bz2 |
net: xilinx_ll_temac: Fix string overflow
Size of this snprintf "lltemac.%lx" is bigger than 16 characters.
Replacing it with "ll_tem.%lx"
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/xilinx_ll_temac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/xilinx_ll_temac.c b/drivers/net/xilinx_ll_temac.c index 7cc8657..ca09546 100644 --- a/drivers/net/xilinx_ll_temac.c +++ b/drivers/net/xilinx_ll_temac.c @@ -303,7 +303,8 @@ int xilinx_ll_temac_initialize(bd_t *bis, struct ll_temac_info *devinf) if (devinf->devname) { strncpy(dev->name, devinf->devname, sizeof(dev->name)); } else { - snprintf(dev->name, sizeof(dev->name), "lltemac.%lx", devinf->base_addr); + snprintf(dev->name, sizeof(dev->name), "ll_tem.%lx", + devinf->base_addr); devinf->devname = dev->name; } |