[lkml]   [2007]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH One-liner] Bug fix of cfag12864b
    This one-liner patch fixes a bug in drivers/auxdisplay/cfag12864b.c

    At cfag12864b_init(), the driver tries to kalloc some memory in the
    variable cfag12864b_cache.

    Then, as usual, it checks if the call failed. However, it checks
    cfag12864b_buffer instead.

    This patch changes the "cfag12864b_buffer" to "cfag12864b_cache" so the
    correct variable is checked.

    Signed-off-by: Miguel Ojeda <>
    diff -Naur linux-2.6.23-rc3-original/drivers/auxdisplay/cfag12864b.c
    --- linux-2.6.23-rc3-original/drivers/auxdisplay/cfag12864b.c 2007-07-09
    01:32:17.000000000 +0200
    +++ linux-2.6.23-rc3/drivers/auxdisplay/cfag12864b.c 2007-08-17
    07:29:35.000000000 +0200
    @@ -355,7 +355,7 @@

    cfag12864b_cache = kmalloc(sizeof(unsigned char) *
    - if (cfag12864b_buffer == NULL) {
    + if (cfag12864b_cache == NULL) {
    printk(KERN_ERR CFAG12864B_NAME ": ERROR: "
    "can't alloc cache buffer (%i bytes)\n",
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-08-17 08:05    [W:0.020 / U:1.804 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site