From: Tao Ma Date: Wed, 5 Mar 2008 07:49:55 +0000 (+0800) Subject: ocfs2: Fix NULL pointer dereferences in o2net X-Git-Tag: v2.6.25-rc6~50^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdef59a94c2fc962ada379d4240d556db7b56d55;p=pandora-kernel.git ocfs2: Fix NULL pointer dereferences in o2net In some situations, ocfs2_set_nn_state might get called with sc = NULL and valid = 0. If sc = NULL, we can't dereference it to get the o2nm_node member. Instead, do what o2net_initialize_handshake does and use NULL when calling o2net_reconnect_delay and o2net_idle_timeout. Signed-off-by: Tao Ma Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed