git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git]
/
fs
/
ocfs2
/
stack_o2cb.c
diff --git
a/fs/ocfs2/stack_o2cb.c
b/fs/ocfs2/stack_o2cb.c
index
3f66137
..
e49c410
100644
(file)
--- a/
fs/ocfs2/stack_o2cb.c
+++ b/
fs/ocfs2/stack_o2cb.c
@@
-17,6
+17,7
@@
* General Public License for more details.
*/
* General Public License for more details.
*/
+#include <linux/kernel.h>
#include <linux/crc32.h>
#include <linux/module.h>
#include <linux/crc32.h>
#include <linux/module.h>
@@
-153,7
+154,7
@@
static int status_map[] = {
static int dlm_status_to_errno(enum dlm_status status)
{
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];
}
return status_map[status];
}