ClangBuiltLinux / thread-safety-analysis

A research project into applying Clang's Thread Safety Analysis to the Linux Kernel
Other
6 stars 0 forks source link

fs/autofs/expire.c: can't annotate get_next_positive_subdir #135

Open himanshujha199640 opened 5 years ago

himanshujha199640 commented 5 years ago

Similar to: https://github.com/ClangBuiltLinux/thread-safety-analysis/issues/28#issuecomment-496215839

/home/himanshu/clang-thread-safety-analysis/fs/autofs/expire.c:106:3: warning: releasing mutex 'q->d_lockref...lock' that was not held [-Wthread-safety-analysis]
                spin_unlock(&q->d_lock);
                ^
/home/himanshu/clang-thread-safety-analysis/fs/autofs/expire.c:111:2: warning: releasing mutex 'q->d_lockref...lock' that was not held [-Wthread-safety-analysis]
        spin_unlock(&q->d_lock);
        ^