mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
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>
This commit is contained in:
parent
aa79850562
commit
fe58103a56
@ -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",
|
||||
CFAG12864B_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user