libdect: also clear dect handle private area
Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
4e04c104d1
commit
7ce0366c31
|
@ -34,7 +34,7 @@ static struct dect_handle *dect_alloc_handle(struct dect_ops *ops)
|
|||
dh = ops->malloc(sizeof(*dh) + ops->priv_size);
|
||||
if (dh == NULL)
|
||||
return NULL;
|
||||
memset(dh, 0, sizeof(*dh));
|
||||
memset(dh, 0, sizeof(*dh) + ops->priv_size);
|
||||
|
||||
dh->ops = ops;
|
||||
init_list_head(&dh->links);
|
||||
|
|
Reference in New Issue