The patch titled
IPMI: fix comparison in demangle_device_id
has been added to the -mm tree. Its filename is
ipmi-fix-comparison-in-demangle_device_id.patch
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
------------------------------------------------------
Subject: IPMI: fix comparison in demangle_device_id
From: Corey Minyard <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
Cc: Adrian Bunk <[EMAIL PROTECTED]>
Cc: Stian Jordet <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
include/linux/ipmi_smi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN include/linux/ipmi_smi.h~ipmi-fix-comparison-in-demangle_device_id
include/linux/ipmi_smi.h
--- a/include/linux/ipmi_smi.h~ipmi-fix-comparison-in-demangle_device_id
+++ a/include/linux/ipmi_smi.h
@@ -173,7 +173,7 @@ static inline int ipmi_demangle_device_i
id->firmware_revision_2 = data[3];
id->ipmi_version = data[4];
id->additional_device_support = data[5];
- if (data_len >= 6) {
+ if (data_len >= 11) {
id->manufacturer_id = (data[6] | (data[7] << 8) |
(data[8] << 16));
id->product_id = data[9] | (data[10] << 8);
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
origin.patch
ipmi-fix-comparison-in-demangle_device_id.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html