mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-29 18:21:27 +00:00
* Attached cubox-i to stock kernel. Tested. Sadly ZRAM has some issues, so it must ramain disabled * more imx6 updates for cubox/udoo * Enable HDMI on Cubox-i Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
34 lines
833 B
Diff
34 lines
833 B
Diff
diff --git a/Makefile b/Makefile
|
|
index 4eb7a17e18f1..2b8434aaeece 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1,6 +1,6 @@
|
|
VERSION = 4
|
|
PATCHLEVEL = 9
|
|
-SUBLEVEL = 157
|
|
+SUBLEVEL = 158
|
|
EXTRAVERSION =
|
|
NAME = Roaring Lionus
|
|
|
|
diff --git a/fs/binfmt_script.c b/fs/binfmt_script.c
|
|
index 634bdbb23851..afdf4e3cafc2 100644
|
|
--- a/fs/binfmt_script.c
|
|
+++ b/fs/binfmt_script.c
|
|
@@ -43,14 +43,10 @@ static int load_script(struct linux_binprm *bprm)
|
|
fput(bprm->file);
|
|
bprm->file = NULL;
|
|
|
|
- for (cp = bprm->buf+2;; cp++) {
|
|
- if (cp >= bprm->buf + BINPRM_BUF_SIZE)
|
|
- return -ENOEXEC;
|
|
- if (!*cp || (*cp == '\n'))
|
|
- break;
|
|
- }
|
|
+ bprm->buf[BINPRM_BUF_SIZE - 1] = '\0';
|
|
+ if ((cp = strchr(bprm->buf, '\n')) == NULL)
|
|
+ cp = bprm->buf+BINPRM_BUF_SIZE-1;
|
|
*cp = '\0';
|
|
-
|
|
while (cp > bprm->buf) {
|
|
cp--;
|
|
if ((*cp == ' ') || (*cp == '\t'))
|