]> git.baikalelectronics.ru Git - kernel.git/commit
cfag12864b fix
authorMiguel Ojeda <maxextreme@gmail.com>
Wed, 22 Aug 2007 21:01:56 +0000 (14:01 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 23 Aug 2007 02:52:46 +0000 (19:52 -0700)
commit13de43fd6d71179abb8fd091476b7245110f1b70
treeb5b3982dd03e04dce4bf084baf8c58110b69d111
parent9ecbf28a624d8c4616069038c03dadd5dc3161a4
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 <maxextreme@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/auxdisplay/cfag12864b.c