summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1e4b909)
sizeof(void *) was allocated instead of sizeof(struct probe).
Signed-off-by: Nils Carlson <nils.carlson@ericsson.com>
static inline void *allocate_probes(int count)
{
static inline void *allocate_probes(int count)
{
- struct tp_probes *p = zmalloc(count * sizeof(void *)
+ struct tp_probes *p = zmalloc(count * sizeof(struct probe)
+ sizeof(struct tp_probes));
return p == NULL ? NULL : p->probes;
}
+ sizeof(struct tp_probes));
return p == NULL ? NULL : p->probes;
}