X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fbinfmt_em86.c;h=f9c88d0c8cedeabcfdca1a5f81a51e1e293a59ea;hb=a3cf859321486f69506326146ab3e2fd15c05c3f;hp=f95ae9789c913d81d0df5d17250bced9c5479855;hpb=cfa76f024f7c9e65169425804e5b32e71f66d0ee;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/binfmt_em86.c b/fs/binfmt_em86.c index f95ae9789c91..f9c88d0c8ced 100644 --- a/fs/binfmt_em86.c +++ b/fs/binfmt_em86.c @@ -43,7 +43,7 @@ static int load_em86(struct linux_binprm *bprm,struct pt_regs *regs) return -ENOEXEC; } - bprm->sh_bang++; /* Well, the bang-shell is implicit... */ + bprm->sh_bang = 1; /* Well, the bang-shell is implicit... */ allow_write_access(bprm->file); fput(bprm->file); bprm->file = NULL;