caif-shm: Bugfixes for caif_shmcore.c
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>
Tue, 6 Dec 2011 12:15:43 +0000 (12:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2011 22:21:47 +0000 (17:21 -0500)
commit095d2a71e51bd2a3e476232156e8d9c2dbc0596d
treebeb274f3b78134dad1badf29c0607baece3ce9e4
parent005b0b076ff68a10cc7ca8d3ba32def3ae95ad96
caif-shm: Bugfixes for caif_shmcore.c

Various bugfixes for caif_shmcore.c:
- fix deadlocks due to improper usage of spin-lock
- add missing spin-lock init
- don't call dev_kfree_skb() with irqs disabled,
  use dev_kfree_skb_irq() instead.
- fix potential skb null pointer de-reference.

Squashed original patches from:
Rabin Vincent <rabin.vincent@stericsson.com>
Durga Prasada Rao BATHINA <durgaprasadarao.b@stericcson.com>
Arun Murthy <arun.murthy@stericsson.com>
Bibek Basu <bibek.basu@stericsson.com>

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_shmcore.c