ID: 264 - incorrect array index in get_lan_param_select()

Commit fixes incorrect array index in get_lan_param_select(). The param value
matches the cmd in the lan_param struct, but it's not the same as the
ipmi_lan_params[] array index. Here is an example of what I mean. This problem
becomes apparent with the OEM extensions which use values 192+.

Commit for Jeff Bastian
This commit is contained in:
Zdenek Styblik 2013-08-13 04:28:43 +00:00
parent a771107c47
commit f8cecaa71a

View File

@ -126,7 +126,7 @@ get_lan_param_select(struct ipmi_intf * intf, uint8_t chan, int param, int selec
for (i = 0; ipmi_lan_params[i].cmd != (-1); i++) {
if (ipmi_lan_params[i].cmd == param) {
p = &ipmi_lan_params[param];
p = &ipmi_lan_params[i];
break;
}
}