Skip to content

Commit 42e9a01

Browse files
Avoid double free
fast_buf.buf is already freed in the common error path. Removing the redundant vfree prevents potential double-free. Co-authored-by: Po-Ying Chiu <[email protected]>
1 parent 92296de commit 42e9a01

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

simrupt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ static int __init simrupt_init(void)
382382
/* Create the workqueue */
383383
simrupt_workqueue = alloc_workqueue("simruptd", WQ_UNBOUND, WQ_MAX_ACTIVE);
384384
if (!simrupt_workqueue) {
385-
vfree(fast_buf.buf);
386385
ret = -ENOMEM;
387386
goto error_workqueue;
388387
}

0 commit comments

Comments
 (0)