Dear stable
To whom it may Concern.
We PRIVATE COMPANY SGG ENERGY TECHNOLOGY LTD, With BIN Code:
211140900115 and Office address located at Astana, Esil District,
Syganak Street, Building 54a, N.P. 142A. With authorized legalized
mandate certificate from trusted and reliable supplier refinery of
petroleum commodities. Attached kindly find our official offer for
your review and if any of our give procedure is acceptable to any
ready buyer’s management, do kindly proceed to issue an official ICPO
to commence transaction.
And further your management is in need of assistance and further
clarification do not hesitate to contact our management.
Thank You.
---
PRIVATE COMPANY SGG ENERGY TECHNOLOGY LTD.
Address: Astana, Esil District, Syganak Street, Building 54a, N.P.
142A
BIN: 211140900115
Email:kazpetro@sggenergytech.com
Tel/WhatsApp: +7 775 540 3537
Director: Dou Shengjun
The function dst_ci_command() calls the function dst_comm_init()
but does not handle the error if the init fails. A proper implementation
can be found in dst_command() in /source/drivers/media/pci/bt8xx/dst.c.
Add error handling to the dst_comm_init(). Print an error message via
dprintk(), and jump to the 'error' label if the function fails.
Fixes: 50b215a05878 ("[PATCH] dvb: DST: reorganize Twinhan DST driver to support CI")
Cc: stable(a)vger.kernel.org # v2.6+
Signed-off-by: Wentao Liang <vulab(a)iscas.ac.cn>
---
drivers/media/pci/bt8xx/dst_ca.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/media/pci/bt8xx/dst_ca.c b/drivers/media/pci/bt8xx/dst_ca.c
index a9cc6e7a57f9..a743f7653fdd 100644
--- a/drivers/media/pci/bt8xx/dst_ca.c
+++ b/drivers/media/pci/bt8xx/dst_ca.c
@@ -66,7 +66,10 @@ static int dst_ci_command(struct dst_state* state, u8 * data, u8 *ca_string, u8
u8 reply;
mutex_lock(&state->dst_mutex);
- dst_comm_init(state);
+ if (dst_comm_init(state) < 0) {
+ dprintk(verbose, DST_CA_ERROR, 1, "DST initialization failed.");
+ goto error;
+ }
msleep(65);
if (write_dst(state, data, len)) {
--
2.42.0.windows.2