mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
a35274cd10
commit
bebf8cfaea
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ int afs_open_socket(void)
|
||||||
ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx));
|
ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx));
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
sock_release(socket);
|
sock_release(socket);
|
||||||
|
destroy_workqueue(afs_async_calls);
|
||||||
_leave(" = %d [bind]", ret);
|
_leave(" = %d [bind]", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue