]> err.no Git - linux-2.6/commit
IPMI: fix comparison in demangle_device_id
authorCorey Minyard <cminyard@mvista.com>
Mon, 29 Oct 2007 21:37:13 +0000 (14:37 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 30 Oct 2007 15:06:55 +0000 (08:06 -0700)
commit64e862a579015d229b8e40b6bc4ac3612e9656e1
tree3e3033c61b438f8a1451d36a930b8657a23cadad
parentcc5f916e90a811dd8f809b4d17409f98e74b237c
IPMI: fix comparison in demangle_device_id

Coverity spotted some incorrect code in a recent change to the IPMI driver;
this patch make sure the data is really long enough to pull the
manufacturer id and product id out of a get device id message.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Adrian Bunk <bunk@kernel.org>
Cc: Stian Jordet <liste@jordet.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/ipmi_smi.h