]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
staging: ozwpan: protect oz_pd_destroy
authorVinayak Pane <vpane@nvidia.com>
Wed, 18 Jun 2014 01:45:14 +0000 (18:45 -0700)
committerTodd Poynter <tpoynter@nvidia.com>
Sun, 22 Jun 2014 02:51:26 +0000 (19:51 -0700)
commit2115acceab535b3b493519c23cb076045618482b
tree3d65a42e60e2b0b2f2e3d9e7ac7b306307d11802
parentaa608de59a483a9e868bb77b0e9460ec0eb551d6
staging: ozwpan: protect oz_pd_destroy

oz_pd_destroy() is called mulitple times when network
down notifier gets triggered. Destroy workqueue is scheduled
from tasklet and also from oz_binding_remov function.
Protecting it by strictly scheduling workqueue only once.

Bug 1522180
Bug 1522708

Change-Id: I47c92a5e7ef1067d5dc4cdf67653a785eff34bca
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/426904
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit
drivers/staging/ozwpan/ozpd.c
drivers/staging/ozwpan/ozpd.h