Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] parport: use complete slab buffer

Use the complete slab buffer that is allocated by kmalloc.

Signed-off-by: Marko Kohtala <marko.kohtala@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Marko Kohtala and committed by
Linus Torvalds
b44d3bdd 7c9cc3be

+4 -4
+4 -4
drivers/parport/daisy.c
··· 144 144 add_dev (numdevs++, port, -1); 145 145 146 146 /* Find out the legacy device's IEEE 1284 device ID. */ 147 - deviceid = kmalloc (1000, GFP_KERNEL); 147 + deviceid = kmalloc (1024, GFP_KERNEL); 148 148 if (deviceid) { 149 - if (parport_device_id (numdevs - 1, deviceid, 1000) > 2) 149 + if (parport_device_id (numdevs - 1, deviceid, 1024) > 2) 150 150 detected++; 151 151 152 152 kfree (deviceid); ··· 508 508 detected); 509 509 510 510 /* Ask the new devices to introduce themselves. */ 511 - deviceid = kmalloc (1000, GFP_KERNEL); 511 + deviceid = kmalloc (1024, GFP_KERNEL); 512 512 if (!deviceid) return 0; 513 513 514 514 for (daisy = 0; thisdev < numdevs; thisdev++, daisy++) 515 - parport_device_id (thisdev, deviceid, 1000); 515 + parport_device_id (thisdev, deviceid, 1024); 516 516 517 517 kfree (deviceid); 518 518 return detected;