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>
#include <sys/stat.h>
#include <unistd.h>
-#include "../../carlfw/include/radar.h"
+#include "pattern.h"
#include "carlfw.h"
#include "compiler.h"
if (!radar_desc) {
fprintf(stderr, "Firmware has radar pattern feature set, but "
"can't find a valid radar descriptor\n");
+ return 0;
}
radars_to_add = radar_desc->num_radars -