OSDN Git Service

diag: Fix for possible stale task entries
authorManoj Prabhu B <bmanoj@codeaurora.org>
Wed, 11 May 2016 03:55:56 +0000 (09:25 +0530)
committerKyle Yan <kyan@codeaurora.org>
Tue, 24 May 2016 18:57:03 +0000 (11:57 -0700)
commit46a83e85920aa49c437c689154ee136eea91de1c
tree66a12f7b14b8824c2f8437a28bac5e26f485c2ab
parentaf4cf780a234f39ab3e6a1f14bb404b909e1275f
diag: Fix for possible stale task entries

The task entries were cleared while closing the
md session and hence are stale while notifying the client.
This patch provides the protection on md session and
also checks for the session pid and task pid being same.

CRs-Fixed: 1008137
Change-Id: I999db2865d10464c7f1ab4a5a940d23c725ac033
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
drivers/char/diag/diagfwd_cntl.c