]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ozwpan: prevent overflow in oz_cdev_write()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 29 Oct 2013 19:07:47 +0000 (22:07 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Oct 2013 19:24:49 +0000 (12:24 -0700)
commit4db713a3d68a682b33ee71d8aa195a45d4482a66
tree0f86f684fe16bd0bb933387b4d0052416df670bc
parent3134d018d67611735a30b3ec8a81f0311a0aed6c
staging: ozwpan: prevent overflow in oz_cdev_write()

We need to check "count" so we don't overflow the ei->data buffer.

Reported-by: Nico Golde <nico@ngolde.de>
Reported-by: Fabian Yamaguchi <fabs@goesec.de>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/staging/ozwpan/ozcdev.c