summaryrefslogtreecommitdiff
path: root/drivers/misc/sgi-gru/grukservices.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2013-07-24 17:22:59 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-25 09:50:53 +0400
commit8b613bb86a3d4a106c9a8f6de3d8a4c3628ea998 (patch)
tree1fedee9ea5b7f72f5db444fdbce40ba9e0cc11a9 /drivers/misc/sgi-gru/grukservices.c
parent5290801c23231c8e192943d3beb01fdbeb536395 (diff)
downloadlinux-8b613bb86a3d4a106c9a8f6de3d8a4c3628ea998.tar.xz
mei: bus: do not overflow the device name buffer
1. use strncmp for comparsion strncpy was used for copying which may omit the final %NUL terminator 2. id->name is statically defined so we can use sizeof Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/sgi-gru/grukservices.c')
0 files changed, 0 insertions, 0 deletions