Chameleon

Chameleon Commit Details

Date:2013-02-01 00:39:19 (7 years 3 months ago)
Author:Cosmosis Jones
Commit:2178
Parents: 2177
Message:http://forge.voodooprojects.org/p/chameleon/issues/319/
Changes:
M/trunk/i386/libsaio/device_inject.c
M/trunk/i386/libsaio/device_inject.h

File differences

trunk/i386/libsaio/device_inject.c
171171
172172
173173
174
174
175175
176176
177177
string->length += device->length;
if(!string->entries)
if((string->entries = (struct DevPropDevice**)malloc(sizeof(device)))== NULL)
if((string->entries = (struct DevPropDevice**)malloc(sizeof(device)*DEV_PROP_DEVICE_MAX_ENTRIES))== NULL)
return 0;
string->entries[string->numentries++] = (struct DevPropDevice*)malloc(sizeof(device));
trunk/i386/libsaio/device_inject.h
1212
1313
1414
15
16
1517
1618
1719
#define DP_ADD_TEMP_VAL_DATA(dev, val) devprop_add_value(dev, (char*)val.name, (uint8_t*)val.data, val.size)
#define MAX_PCI_DEV_PATHS 4
#define DEV_PROP_DEVICE_MAX_ENTRIES 64
extern struct DevPropString *string;
extern uint8_t *stringdata;
extern uint32_t stringlength;

Archive Download the corresponding diff file

Revision: 2178