提交 2be8412c 编写于 作者: A Alan Cox 提交者: Tony Luck

[IA64] sprintf should not be used with same source & destination address

This happens to work at the moment but isn't a good idea so fix it the
simple way.

Resolves-bug: http://bugzilla.kernel.org/show_bug.cgi?id=13576Signed-off-by: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 5a4f13fa
......@@ -435,7 +435,8 @@ void sn_generate_path(struct pci_bus *pci_bus, char *address)
bricktype = MODULE_GET_BTYPE(moduleid);
if ((bricktype == L1_BRICKTYPE_191010) ||
(bricktype == L1_BRICKTYPE_1932))
sprintf(address, "%s^%d", address, geo_slot(geoid));
sprintf(address + strlen(address), "^%d",
geo_slot(geoid));
}
void __devinit
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册