[PATCH 3.13.y-ckt 016/122] ozwpan: Use proper check to prevent heap overflow

2015-06-17 Thread Kamal Mostafa
3.13.11-ckt22 -stable review patch. If anyone has any objections, please let me know. -- From: "Jason A. Donenfeld" commit d114b9fe78c8d6fc6e70808c2092aa307c36dc8e upstream. Since elt->length is a u8, we can make this variable a u8. Then we can do proper bounds checking more

[PATCH 3.13.y-ckt 016/122] ozwpan: Use proper check to prevent heap overflow

2015-06-17 Thread Kamal Mostafa
3.13.11-ckt22 -stable review patch. If anyone has any objections, please let me know. -- From: Jason A. Donenfeld ja...@zx2c4.com commit d114b9fe78c8d6fc6e70808c2092aa307c36dc8e upstream. Since elt-length is a u8, we can make this variable a u8. Then we can do proper bounds