vflash: modify out of memory bug
authorhwg <hwg@rock-chips.com>
Thu, 27 Dec 2012 07:31:51 +0000 (15:31 +0800)
committerhwg <hwg@rock-chips.com>
Thu, 27 Dec 2012 07:31:51 +0000 (15:31 +0800)
drivers/bluetooth/vflash.c

index e889e823f7cb1367a33ef1a3dd7a539cc944ed71..266ea175f5c8e9a87ec75916f24b4dc7488c658d 100755 (executable)
@@ -78,7 +78,7 @@ static long vflash_ioctl(struct file *file,
             }\r
 #else\r
             char *tempBuf = (char *)kmalloc(512, GFP_KERNEL);\r
-           char bd_addr[6] = {0};\r
+           char bd_addr[7] = {0};\r
             int i;\r
 \r
             GetSNSectorInfo(tempBuf);\r