From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 In-Reply-To: <1305178350-7568-3-git-send-email-padovan@profusion.mobi> References: <1305178350-7568-1-git-send-email-padovan@profusion.mobi> <1305178350-7568-2-git-send-email-padovan@profusion.mobi> <1305178350-7568-3-git-send-email-padovan@profusion.mobi> Date: Thu, 12 May 2011 13:58:34 -0400 Message-ID: Subject: Re: [PATCH 3/6] Bluetooth: Add chan->link_type struct member From: Anderson Lizardo To: "Gustavo F. Padovan" Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Gustavo, On Thu, May 12, 2011 at 1:32 AM, Gustavo F. Padovan wrote: > @@ -204,8 +204,8 @@ static int l2cap_sock_connect(struct socket *sock, struct sockaddr *addr, int al >        } > >        /* PSM must be odd and lsb of upper byte must be 0 */ > -       if ((__le16_to_cpu(la.l2_psm) & 0x0101) != 0x0001 && > -                               sk->sk_type != SOCK_RAW && !la.l2_cid) { > +       if ((__le16_to_cpu(la.l2_psm) & 0x0101) != 0x0001 && !la.l2_cid && > +                                       chan->link_type == L2CAP_LINK_RAW) { There seems to be a typo here: Original: sk->sk_type != SOCK_RAW New: chan->link_type == L2CAP_LINK_RAW Should it be != instead? >                err = -EINVAL; >                goto done; >        } Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil