dell-laptop: Fix krealloc() misuse in parse_da_table()
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 14 Mar 2013 13:33:15 +0000 (13:33 +0000)
committerMatthew Garrett <matthew.garrett@nebula.com>
Wed, 8 May 2013 23:59:44 +0000 (19:59 -0400)
commita30450c7bbb04212c5f01936274ca8d965cabf79
tree24b59002cc5a75f4177297d9a4d5f73cfbca81c2
parent7783819920ca52fc582a2782f654fe6ed373f465
dell-laptop: Fix krealloc() misuse in parse_da_table()

If krealloc() returns NULL, it *doesn't* free the original. So any code
of the form 'foo = krealloc(foo, …);' is almost certainly a bug.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/dell-laptop.c