Skip to content

Commit bebf8cf

Browse files
error27torvalds
authored andcommitted
afs: destroy work queue on init failure
We can clean up the work queue on this error path. This function is called from afs_init(). Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a35274c commit bebf8cf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/afs/rxrpc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ int afs_open_socket(void)
100100
ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx));
101101
if (ret < 0) {
102102
sock_release(socket);
103+
destroy_workqueue(afs_async_calls);
103104
_leave(" = %d [bind]", ret);
104105
return ret;
105106
}

0 commit comments

Comments
 (0)