Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156718
b: refs/heads/master
c: 8a57a9d
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Joel Becker committed Aug 7, 2009
1 parent 733d200 commit 77972ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7432675f8ca868a4af365759a8d4c3779a3d922
refs/heads/master: 8a57a9dda760ea7845390f1cd36f3eb2a49391d8
3 changes: 2 additions & 1 deletion trunk/fs/ocfs2/stack_o2cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* General Public License for more details.
*/

#include <linux/kernel.h>
#include <linux/crc32.h>
#include <linux/module.h>

Expand Down Expand Up @@ -153,7 +154,7 @@ static int status_map[] = {

static int dlm_status_to_errno(enum dlm_status status)
{
BUG_ON(status > (sizeof(status_map) / sizeof(status_map[0])));
BUG_ON(status < 0 || status >= ARRAY_SIZE(status_map));

return status_map[status];
}
Expand Down

0 comments on commit 77972ec

Please sign in to comment.