From: Mauro Carvalho Chehab Date: Wed, 24 Sep 2014 18:35:55 +0000 (-0300) Subject: [media] pms: Fix a bad usage of the stack X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64e01cbd9d3e22e38eadeff9e0d251d0d7d1c9d2;p=pandora-kernel.git [media] pms: Fix a bad usage of the stack As warned by smatch: drivers/media/parport/pms.c:632:21: warning: Variable length array is used. The pms driver is doing something really bad: it is using the stack to read data into a buffer whose size is given by the user by the read() syscall. Replace it by a dynamically allocated buffer. Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed