lkml.org 
[lkml]   [2008]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 31/49] uml: missed kmalloc() in pcap_user.c
    2.6.25-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Al Viro <viro@ftp.linux.org.uk>

    commit 296cd66f7f6e130fe08e6880ecb13c3fc615a8db upstream

    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Acked-by: Jeff Dike <jdike@addtoit.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    arch/um/drivers/pcap_user.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/arch/um/drivers/pcap_user.c
    +++ b/arch/um/drivers/pcap_user.c
    @@ -50,7 +50,7 @@ static int pcap_open(void *data)
    return -EIO;
    }

    - pri->compiled = kmalloc(sizeof(struct bpf_program),
    + pri->compiled = uml_kmalloc(sizeof(struct bpf_program),
    UM_GFP_KERNEL);
    if (pri->compiled == NULL) {
    printk(UM_KERN_ERR "pcap_open : kmalloc failed\n");
    --


    \
     
     \ /
      Last update: 2008-08-18 21:45    [W:4.132 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site