[PATCH 0/2] Fix usage and validation of undefined value in enum modulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux