Skip to contentSkip to conversation

afs: destroy work queue on init failure

PATCH New Dan Carpenter 1 participant 1 message Jul 31, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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().

fs/afs/rxrpc.c +1 -0
index 67cf810..654d8fd 100644
@@ -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;
 	}