mxl111sf: missing return values validation
Subsystems (2)
PATCH 1/1 mxl111sf: missing return values validation
Return values of mxl111sf_enable_usb_output and mxl1x1sf_top_master_ctrl are not validated.
Signed-off-by Insu Yun <[email protected]>
--- drivers/media/usb/dvb-usb-v2/mxl111sf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/usb/dvb-usb-v2/mxl111sf.c +2 -2
@@ -288,9 +288,9 @@ static int mxl111sf_adap_fe_init(struct dvb_frontend *fe) err =mxl1x1sf_set_device_mode (state, adap_state->device_mode);mxl_fail (err); -mxl111sf_enable_usb_output (state); + err =mxl111sf_enable_usb_output (state);mxl_fail (err); -mxl1x1sf_top_master_ctrl (state,1 ); + err =mxl1x1sf_top_master_ctrl (state,1 );mxl_fail (err); if ((MXL111SF_GPIO_MOD_DVBT != adap_state->gpio_mode) &&
Signature · 1 line
1.9.1
Quoted 4 lines · Insu Yun
Return values of
mxl111sf_enable_usb_outputandmxl1x1sf_top_master_ctrlare not validated.Signed-off-by Insu Yun <[email protected]>
Eeek! You're right! ...and I'm the one who wrote the offending code. My bad O:-)
Thank you for this patch. Mauro, please apply it.
Reviewed-by Michael Ira Krufky <[email protected]>
Quoted 23 lines
--- drivers/media/usb/dvb-usb-v2/mxl111sf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/media/usb/dvb-usb-v2/mxl111sf.c +2
-3@@ -288,9 +288,9 @@ static int mxl111sf_adap_fe_init(struct dvb_frontend *fe) err =mxl1x1sf_set_device_mode (state, adap_state->device_mode);mxl_fail (err); -mxl111sf_enable_usb_output (state); + err =mxl111sf_enable_usb_output (state);mxl_fail (err); -mxl1x1sf_top_master_ctrl (state,1 ); + err =mxl1x1sf_top_master_ctrl (state,1 );mxl_fail (err); if ((MXL111SF_GPIO_MOD_DVBT != adap_state->gpio_mode) && --1.9.1