From: hwg Date: Thu, 27 Dec 2012 07:31:51 +0000 (+0800) Subject: vflash: modify out of memory bug X-Git-Tag: firefly_0821_release~8056 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2b6bc330c1324081a624aa73ebbde7fb434311e0;p=firefly-linux-kernel-4.4.55.git vflash: modify out of memory bug --- diff --git a/drivers/bluetooth/vflash.c b/drivers/bluetooth/vflash.c index e889e823f7cb..266ea175f5c8 100755 --- a/drivers/bluetooth/vflash.c +++ b/drivers/bluetooth/vflash.c @@ -78,7 +78,7 @@ static long vflash_ioctl(struct file *file, } #else char *tempBuf = (char *)kmalloc(512, GFP_KERNEL); - char bd_addr[6] = {0}; + char bd_addr[7] = {0}; int i; GetSNSectorInfo(tempBuf);