Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bebf8cfa authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Torvalds
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a35274cd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -100,6 +100,7 @@ int afs_open_socket(void)
	ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx));
	if (ret < 0) {
		sock_release(socket);
		destroy_workqueue(afs_async_calls);
		_leave(" = %d [bind]", ret);
		return ret;
	}