]> git.baikalelectronics.ru Git - kernel.git/commit
[media] RedRat3: Return directly after a failed kcalloc() in redrat3_transmit_ir()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 13 Oct 2016 08:34:29 +0000 (05:34 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 18 Nov 2016 12:50:19 +0000 (10:50 -0200)
commit57adf8e1f9d55cbe117743479028f14056d96173
tree3917f7db52f19816330a19923ccf61ab43ec140e
parente23068bf9cc1ee13415bc1fb47b44c8524e38f39
[media] RedRat3: Return directly after a failed kcalloc() in redrat3_transmit_ir()

* Return directly after a call of the function "kcalloc" failed
  at the beginning.

* Reorder two calls for the function "kfree" at the end.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/redrat3.c