Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167834
b: refs/heads/master
c: 774b138
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Artem Bityutskiy committed Oct 20, 2009
1 parent 21684c7 commit 918d6e7
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: 2eadaad67b2b6bd132eda105128d2d466298b8e3
refs/heads/master: 774b1382106529ad963d011931c1b911db05be68
3 changes: 2 additions & 1 deletion trunk/drivers/mtd/ubi/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <linux/log2.h>
#include <linux/kthread.h>
#include <linux/reboot.h>
#include <linux/kernel.h>
#include "ubi.h"

/* Maximum length of the 'mtd=' parameter */
Expand Down Expand Up @@ -1257,7 +1258,7 @@ static int __init bytes_str_to_int(const char *str)
unsigned long result;

result = simple_strtoul(str, &endp, 0);
if (str == endp || result < 0) {
if (str == endp || result >= INT_MAX) {
printk(KERN_ERR "UBI error: incorrect bytes count: \"%s\"\n",
str);
return -EINVAL;
Expand Down

0 comments on commit 918d6e7

Please sign in to comment.