Re: Next May 13:[drivers/base/firmware*] Bug while booting on x86

From: Sachin Sant
Date: Fri May 15 2009 - 07:28:45 EST


David Woodhouse wrote:
Oops. Does this fix it?

--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -328,7 +328,7 @@ firmware_data_write(struct kobject *kobj, struct
bin_attribute *bin_attr,

memcpy(page_data + page_ofs, buffer, page_cnt);

- kunmap(page_data);
+ kunmap(fw_priv->pages[page_nr]);
buffer += page_cnt;
offset += page_cnt;
count -= page_cnt;
Thanks David. This patch fixed the issue.

Tested-by : Sachin Sant <sachinp@xxxxxxxxxx>

Thanks
-Sachin

--

---------------------------------
Sachin Sant
IBM Linux Technology Center
India Systems and Technology Labs
Bangalore, India
---------------------------------

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/