]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Thu, 17 Oct 2024 13:11:52 +0000 (15:11 +0200)
commit6515b7b11757f4eec911f62c582e72ee839adacc
treecae5cb39c46d344b5b80f96b9697bade02d4cdb0
parent98d5873ee0637909784e1a992eea0470943fd49d
comedi: ni_routing: tools: Check when the file could not be opened

[ Upstream commit 5baeb157b341b1d26a5815aeaa4d3bb9e0444fda ]

- 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/comedi/drivers/ni_routing/tools/convert_c_to_py.c