summaryrefslogtreecommitdiff
path: root/drivers/edac/cell_edac.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-08-01 12:25:14 +0400
committerBorislav Petkov <bp@suse.de>2014-11-11 20:08:56 +0300
commit665aa8cdc499b9aeea6532e682a58ca34b7f94e6 (patch)
tree39429bfdf2360975eac40961c794851c63db8e1c /drivers/edac/cell_edac.c
parentf5b10c45ef80c0630ed5318a386da65dde0a1582 (diff)
downloadlinux-665aa8cdc499b9aeea6532e682a58ca34b7f94e6.tar.xz
ghes_edac: Use snprintf() to silence a static checker warning
My static checker complains because the "e->location" has up to 256 characters but we are copying it into the "pvt->detail_location" which only has space for 240 characters. That's not counting the surrounding text and the "e->other_detail" string which can be over 80 characters long. I am not familiar with this code but presumably it normally works. Let's add a limit though for safety. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Link: http://lkml.kernel.org/r/20140801082514.GD28869@mwanda Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/cell_edac.c')
0 files changed, 0 insertions, 0 deletions