summaryrefslogtreecommitdiffstats
path: root/drivers/char/amiserial.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/amiserial.c')
-rw-r--r--drivers/char/amiserial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/amiserial.c b/drivers/char/amiserial.c
index 29614cfd9..2c39b55fa 100644
--- a/drivers/char/amiserial.c
+++ b/drivers/char/amiserial.c
@@ -1876,7 +1876,7 @@ static int get_async_struct(int line, struct async_struct **ret_info)
info->tqueue.data = info;
info->state = sstate;
if (sstate->info) {
- kfree_s(info, sizeof(struct async_struct));
+ kfree(info);
*ret_info = sstate->info;
return 0;
}
@@ -2254,7 +2254,7 @@ void cleanup_module(void)
info = rs_table[0].info;
if (info) {
rs_table[0].info = NULL;
- kfree_s(info, sizeof(struct async_struct));
+ kfree(info);
}
if (tmp_buf) {