From: Ricardo Ribalda Delgado Date: Tue, 26 Jan 2016 10:24:24 +0000 (+0100) Subject: net: xilinx_ll_temac: Fix string overflow X-Git-Tag: v2016.03-rc1~46^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21909baf57085994eb35089626d68d1b5b9619f7;p=platform%2Fkernel%2Fu-boot.git 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 Reviewed-by: Bin Meng Reviewed-by: Tom Rini Signed-off-by: Michal Simek Reviewed-by: Michal Simek --- 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; }