comedi: ni_routing: tools: Check when the file could not be opened
authorRuffalo Lavoisier <ruffalolavoisier@gmail.com>
Fri, 6 Sep 2024 20:30:25 +0000 (05:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Sep 2024 14:03:28 +0000 (16:03 +0200)
commit5baeb157b341b1d26a5815aeaa4d3bb9e0444fda
treee8c363010f9b2abcb8804640d3aad33e18478199
parent0bad57708d7c16a409a2770e9e8c477a30b257c0
comedi: ni_routing: tools: Check when the file could not be opened

- After fopen check NULL before using the file pointer use

Signed-off-by: Ruffalo Lavoisier <RuffaloLavoisier@gmail.com>
Link: https://lore.kernel.org/r/20240906203025.89588-1-RuffaloLavoisier@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/comedi/drivers/ni_routing/tools/convert_c_to_py.c