Commit:     fe58103a56f05613cb1f0ef228354d4d5f6c2b08
Parent:     aa7985056286f5f912af7bb03f883230cc527701
Author:     Miguel Ojeda <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 22 14:01:56 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Aug 22 19:52:46 2007 -0700

    cfag12864b fix
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/auxdisplay/cfag12864b.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/auxdisplay/cfag12864b.c b/drivers/auxdisplay/cfag12864b.c
index cb44cb4..80bb061 100644
--- a/drivers/auxdisplay/cfag12864b.c
+++ b/drivers/auxdisplay/cfag12864b.c
@@ -355,7 +355,7 @@ static int __init cfag12864b_init(void)
        cfag12864b_cache = kmalloc(sizeof(unsigned char) *
                CFAG12864B_SIZE, GFP_KERNEL);
-       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 git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to