[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1337079889-62380-1-git-send-email-hare@suse.de>
Date: Tue, 15 May 2012 13:04:49 +0200
From: Hannes Reinecke <hare@...e.de>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Hannes Reinecke <hare@...e.de>, Gleb Natapov <gleb@...hat.com>,
"H. Peter Anvin" <hpa@...ux.intel.com>
Subject: [PATCH] EDD: Check for correct EDD 3.0 length
The device_path_info_length for EDD 3.0 is 36, not 44.
Cf http://mbldr.sourceforge.net/specsedd30.pdf.
This is a regression introduced by commit
0c61227094b3ddaca2f847ee287c4a2e3762b5a2
Signed-off-by: Hannes Reinecke <hare@...e.de>
Cc: Gleb Natapov <gleb@...hat.com>
Cc: H. Peter Anvin <hpa@...ux.intel.com>
diff --git a/drivers/firmware/edd.c b/drivers/firmware/edd.c
index e229576..09a77d5 100644
--- a/drivers/firmware/edd.c
+++ b/drivers/firmware/edd.c
@@ -545,8 +545,8 @@ edd_has_edd30(struct edd_device *edev)
}
- /* We support only T13 spec */
- if (info->params.device_path_info_length != 44)
+ /* EDD 3.0 specifies this to be 36 */
+ if (info->params.device_path_info_length != 36)
return 0;
for (i = 30; i < info->params.device_path_info_length + 30; i++)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists