hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/dvb-frontends/cx24120.c
....@@ -305,7 +305,7 @@
305305 kfree(state);
306306 return NULL;
307307 }
308
-EXPORT_SYMBOL(cx24120_attach);
308
+EXPORT_SYMBOL_GPL(cx24120_attach);
309309
310310 static int cx24120_test_rom(struct cx24120_state *state)
311311 {
....@@ -972,7 +972,9 @@
972972 cmd.arg[8] = (clock_ratios_table[idx].rate >> 8) & 0xff;
973973 cmd.arg[9] = (clock_ratios_table[idx].rate >> 0) & 0xff;
974974
975
- cx24120_message_send(state, &cmd);
975
+ ret = cx24120_message_send(state, &cmd);
976
+ if (ret != 0)
977
+ return;
976978
977979 /* Calculate ber window rates for stat work */
978980 cx24120_calculate_ber_window(state, clock_ratios_table[idx].rate);