core: harden gpiod_chip_open()
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 5 Nov 2018 02:57:17 +0000 (03:57 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 5 Nov 2018 10:01:27 +0000 (11:01 +0100)
commitd9b1c1f14c6bebab3c931086bbbdd31c2a8a3f67
treec176e944859fd913d122952cd1d9375742b40b2f
parent3a8aa70c54edc146ccfc595f072085d29b495b91
core: harden gpiod_chip_open()

Verify that the file we were asked to use is really a GPIO character
device.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c