carl9170 firmware tools: fix off-by-one segmentation fault in fwprepare
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 23 Nov 2013 13:22:55 +0000 (14:22 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Sat, 23 Nov 2013 13:22:55 +0000 (14:22 +0100)
commitf5bbdc35903f6d3f1bd136eeca0dbc3963e4cb33
tree4d1b3157edd0b52517dfe41e8b3f853a8eeabe67
parent593709de14b8c10bce1164eeb22fa7b77a9e4bce
carl9170 firmware tools: fix off-by-one segmentation fault in fwprepare

This patch fixes a segmentation fault which would occur if the
firmware had the PATTERN_GENERATOR feature bit set, but didn't
have the pattern descriptor.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
tools/src/fwprepare.c