poll: missing pmlock timeout_id after be requested again 51/99651/2
authorJeong Donghwan <dh.jeong@samsung.com>
Wed, 23 Nov 2016 12:25:49 +0000 (21:25 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Tue, 29 Nov 2016 05:39:35 +0000 (21:39 -0800)
commit688981646d171c6b6eedbefd7406f4bb381e6716
tree6fc18a0c7f5722a5f9c3f4604abf7ce1d1a35d76
parent4b87a6363e9e1b19a6d7a7849b90d73e4608c2c4
poll: missing pmlock timeout_id after be requested again

Under scenario, power-manager will be released pmlock.
Because, previous sequence, when pmlock node was existed with
restriced timer, if pmlock is requested with infinity lock,
'node->timeout_id' is null already.
So old timeout_id(restricted timer) can not be removed.

Problem scenamrio :
1. 'A' process was requested pmlock with infinity lock.
2. Same process was requested pmlock with 5 second.
3. Same process was requested pmlock with infinity lock
  before release previious lock
4. This requested pmlock will be released despite infinity option.

Change-Id: Icd5a3460b275508056b7e777653a05b5aad8fb90
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
src/display/core.c