[PATCH] ni_routing: Check when the file could not be opened

Ruffalo Lavoisier
2024-09-06T11:54:10Z

drivers/comedi/drivers/ni_routing/tools/convert_c_to_py.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/comedi/drivers/ni_routing/tools/convert_c_to_py.c b/drivers/comedi/drivers/ni_routing/tools/convert_c_to_py.c
index d55521b5bdcb..d0321a7565c5 100644
--- a/drivers/comedi/drivers/ni_routing/tools/convert_c_to_py.c
+++ b/drivers/comedi/drivers/ni_routing/tools/convert_c_to_py.c
@@ -139,6 +139,10 @@ void device_write(const struct ni_device_routes *dR, FILE *fp)
int main(void)