]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] s2255drv: dynamic memory allocation efficiency fix
authorDean Anderson <linux-dev@sensoray.com>
Wed, 5 Feb 2014 18:43:51 +0000 (15:43 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 28 Feb 2014 17:25:03 +0000 (14:25 -0300)
commit47d8c881c304642a68d398b87d9e8846e643c81a
tree3f6ca1fe59cd90a2d33e13923eb6ec238ded2a9b
parent8bf405a0da59cee39e244ec75465017248bdef10
[media] s2255drv: dynamic memory allocation efficiency fix

Driver was allocating a kernel buffer each time it was sending a command.
It is better to allocate this buffer once at startup.

Signed-off-by: Dean Anderson <linux-dev@sensoray.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/s2255/s2255drv.c