Ocfs2: Handle empty list in lockres_seq_start() for dlmdebug.c
authorTristan Ye <tristan.ye@oracle.com>
Fri, 10 Sep 2010 02:16:33 +0000 (10:16 +0800)
committerJoel Becker <joel.becker@oracle.com>
Fri, 10 Sep 2010 16:19:30 +0000 (09:19 -0700)
This patch tries to handle the case in which list 'dlm->tracking_list' is
empty, to avoid accessing an invalid pointer. It fixes the following oops:

http://oss.oracle.com/bugzilla/show_bug.cgi?id=1287

Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>

No differences found