ocfs2/dlm: don't access beyond bitmap size
authorWengang Wang <wen.gang.wang@oracle.com>
Wed, 30 Jun 2010 12:23:30 +0000 (20:23 +0800)
committerJoel Becker <joel.becker@oracle.com>
Mon, 12 Jul 2010 20:56:14 +0000 (13:56 -0700)
commitf471c9df922a80ca9af1d9a490b4aab3f990ec19
tree554116c78b9345c7bc0741bbc6be1fd7d5d390d4
parent693c241a5f6aa01417f5f4caf9f82e60e316398d
ocfs2/dlm: don't access beyond bitmap size

dlm->recovery_map is defined as
unsigned long recovery_map[BITS_TO_LONGS(O2NM_MAX_NODES)];

We should treat O2NM_MAX_NODES as the bit map size in bits.
This patches fixes a bit operation that takes O2NM_MAX_NODES + 1 as bitmap size.

Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/dlm/dlmrecovery.c