This patches fixes usage and validation of undefined enum modulation value. First one adds missing enum which is returned from rf69_get_modulation function, second one fixes validation issue in rf69_set_modulation_shaping function. The issue is that return value is checked against FSK enum value only and all other values are in else branch what leads to possibility of setting modulation shaping for undefined modulation. Marcin Ciupak (2): staging: pi433: Fix missing 'undefined' value in enum modulation staging: pi433: Fix validation of rf69_get_modulation value drivers/staging/pi433/rf69.c | 10 +++++++--- drivers/staging/pi433/rf69_enum.h | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) -- 2.15.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel