Skip to content

Commit f944e6b

Browse files
author
Fox Snowpatch
committed
1 parent 5165c17 commit f944e6b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/tty/hvc/hvc_iucv.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,10 @@ static const struct attribute_group *hvc_iucv_dev_attr_groups[] = {
10351035
NULL,
10361036
};
10371037

1038+
static void hvc_iucv_free(struct device *data)
1039+
{
1040+
kfree(data);
1041+
}
10381042

10391043
/**
10401044
* hvc_iucv_alloc() - Allocates a new struct hvc_iucv_private instance
@@ -1097,7 +1101,7 @@ static int __init hvc_iucv_alloc(int id, unsigned int is_console)
10971101
priv->dev->bus = &iucv_bus;
10981102
priv->dev->parent = iucv_root;
10991103
priv->dev->groups = hvc_iucv_dev_attr_groups;
1100-
priv->dev->release = (void (*)(struct device *)) kfree;
1104+
priv->dev->release = hvc_iucv_free;
11011105
rc = device_register(priv->dev);
11021106
if (rc) {
11031107
put_device(priv->dev);

0 commit comments

Comments
 (0)