On Sun, Mar 24, 2013 at 07:21:18PM +0100, Oleg Nesterov wrote: > __copy_insn(filp) can only be called after valid_vma() returns T, > vma->vm_file passed as "filp" can not be NULL. > > Signed-off-by: Oleg Nesterov <o...@redhat.com> > --- > kernel/events/uprobes.c | 3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) > > diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c > index 0a759c6..e5d479f 100644 > --- a/kernel/events/uprobes.c > +++ b/kernel/events/uprobes.c > @@ -478,9 +478,6 @@ __copy_insn(struct address_space *mapping, struct file > *filp, char *insn, > { > struct page *page; > > - if (!filp) > - return -EINVAL; > - > if (!mapping->a_ops->readpage) > return -EIO; > /* > -- > 1.5.5.1 > Acked-by: Anton Arapov <an...@redhat.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- [PATCH 2/7] uretprobes: extract fill_page() and trampoli... Anton Arapov
- Re: [PATCH 2/7] uretprobes: extract fill_page() and... Oleg Nesterov
- [PATCH 0/5] kmap cleanups for uretprobes (Was: ... Oleg Nesterov
- [PATCH 1/5] uprobes: Turn copy_opcode() int... Oleg Nesterov
- Re: [PATCH 1/5] uprobes: Turn copy_opco... Anton Arapov
- Re: [PATCH 1/5] uprobes: Turn copy_opco... Srikar Dronamraju
- [PATCH 2/5] uprobes: Change __copy_insn() t... Oleg Nesterov
- Re: [PATCH 2/5] uprobes: Change __copy_... Anton Arapov
- Re: [PATCH 2/5] uprobes: Change __copy_... Srikar Dronamraju
- [PATCH 3/5] uprobes: Kill the unnecesary fi... Oleg Nesterov
- Re: [PATCH 3/5] uprobes: Kill the unnec... Anton Arapov
- Re: [PATCH 3/5] uprobes: Kill the unnec... Srikar Dronamraju
- [PATCH 5/5] uprobes: Change write_opcode() ... Oleg Nesterov
- Re: [PATCH 5/5] uprobes: Change write_o... Anton Arapov
- Re: [PATCH 5/5] uprobes: Change write_o... Srikar Dronamraju
- [PATCH 4/5] uprobes: Introduce copy_to_page... Oleg Nesterov
- Re: [PATCH 4/5] uprobes: Introduce copy... Anton Arapov
- Re: [PATCH 4/5] uprobes: Introduce copy... Srikar Dronamraju
- Re: [PATCH 0/5] kmap cleanups for uretprobe... Anton Arapov
- Re: [PATCH 2/7] uretprobes: extract fill_page()... Oleg Nesterov
- [PATCH 7/7] uretprobes: remove -ENOSYS as return probes ... Anton Arapov