Fix stack overflow in delloem setled

From: Jan Safranek <jsafrane@redhat.com>

The buffer should be bigger to hold the 10 character, which are set later
in the function.
This commit is contained in:
Jim Mankovich 2012-06-05 16:53:09 +00:00
parent 79fdc68950
commit 4b058899a2

View File

@ -4861,7 +4861,7 @@ CheckSetLEDSupport(struct ipmi_intf * intf)
{
struct ipmi_rs * rsp = NULL;
struct ipmi_rq req = {0};
uint8_t data[4];
uint8_t data[10];
SetLEDSupported = 0;
req.msg.netfn = DELL_OEM_NETFN;