diff --git a/net/bluetooth/iso.c b/net/bluetooth/iso.c index 70c2dd30cb136b14e4278c89b4b16f2f5ed9c006..015d1b41bc325484bb17985203100c580c9de4e9 100644 --- a/net/bluetooth/iso.c +++ b/net/bluetooth/iso.c @@ -1251,7 +1251,7 @@ static int iso_sock_getsockopt(struct socket *sock, int level, int optname, switch (optname) { case BT_DEFER_SETUP: - if (sk->sk_state != BT_BOUND && sk->sk_state != BT_LISTEN) { + if (sk->sk_state == BT_CONNECTED) { err = -EINVAL; break; }