Re: [RFC 03/16] Bluetooth: extend state_change() call to report errors too

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Padovan,

On Wed, Dec 12, 2012 at 12:13 AM, Gustavo Padovan <gustavo@xxxxxxxxxxx> wrote:
> @@ -230,9 +230,7 @@ static void l2cap_state_change(struct l2cap_chan *chan, int state)
>
>  static inline void __l2cap_chan_set_err(struct l2cap_chan *chan, int err)
>  {
> -       struct sock *sk = chan->sk;
> -
> -       sk->sk_err = err;
> +       chan->ops->state_change(chan, chan->state, 0);

Shouldn't it be "chan->ops->state_change(chan, chan->state, err);" here?

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux