[PATCH openEuler-5.10-LTS 074/109] net/tls: Check for errors in tls_device_init