Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6dd2d5d authored by Michael Krufky's avatar Michael Krufky Committed by Linus Torvalds
Browse files

[PATCH] dvb: nxt200x: check callback fix



Check that a callback (set_ts_params) is set before calling it.

Signed-off-by: default avatarMichael Krufky <mkrufky@m1k.net>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 04a45929
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -557,6 +557,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
		case QAM_256:
			/* Set punctured clock for QAM */
			/* This is just a guess since I am unable to test it */
			if (state->config->set_ts_params)
				state->config->set_ts_params(fe, 1);

			/* set to use cable input */
@@ -564,6 +565,7 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
			break;
		case VSB_8:
			/* Set non-punctured clock for VSB */
			if (state->config->set_ts_params)
				state->config->set_ts_params(fe, 0);
			break;
		default: