diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-11-02 10:20:26 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-11-02 10:20:26 -0800 |
commit | 4cb8c3593bbb884c5c282b1d8502a0930235fe88 (patch) | |
tree | dbe50ae637e9266fc19b295049e86e2910e35d08 /drivers | |
parent | 12d7aacab56e9ef185c3a5512e867bfd3a9504e4 (diff) | |
download | linux-4cb8c3593bbb884c5c282b1d8502a0930235fe88.tar.gz linux-4cb8c3593bbb884c5c282b1d8502a0930235fe88.tar.bz2 linux-4cb8c3593bbb884c5c282b1d8502a0930235fe88.zip |
irda: stop calling sk_prot->disconnect() on connection failure
The sk_prot is irda's own set of protocol handlers, so irda should
statically know what that function is anyway, without using an indirect
pointer. And as it happens, we know *exactly* what that pointer is
statically: it's NULL, because irda doesn't define a disconnect
operation.
So calling that function is doubly wrong, and will just cause an oops.
Reported-by: Martin Lang <mlg.hessigheim@gmail.com>
Cc: Samuel Ortiz <samuel@sortiz.org>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions