]> git.baikalelectronics.ru Git - kernel.git/commit
irda: fix a potential use-after-free in ircomm_param_request
authorWANG Cong <xiyou.wangcong@gmail.com>
Fri, 29 Jan 2016 19:58:03 +0000 (11:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jan 2016 06:56:46 +0000 (22:56 -0800)
commit1343608b0c0712d3ac149b6454d633768ab0a303
tree1842eaaeb44e9d2ac1d485833d0d7e3029e3a51a
parente828a231da89ebc8787a989dd32e22114e3aa42c
irda: fix a potential use-after-free in ircomm_param_request

self->ctrl_skb is protected by self->spinlock, we should not
access it out of the lock. Move the debugging printk inside.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/ircomm/ircomm_param.c