Jan Kiszka : cobalt/rtdm: Avoid dereferencing NULL device in __rtdm_dev_ioctl_core
A message that is not in the archive (sent off-list or not yet received): [email protected]
Philippe Gerum
AppliedQuoted 8 lines · git repository hosting
Module: xenomai-jki Branch: for-forge Commit: dfec6f1f9448b4e207e36280a0e48923687a1cee URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=dfec6f1f9448b4e207e36280a0e48923687a1ceeAuthor: Jan Kiszka <[email protected]> Date: Thu Nov 30 21:39:44 2017 +0100
Quoted 7 lines
cobalt/rtdm: Avoid dereferencing NULL device in
__rtdm_dev_ioctl_coreFile descriptors created by message queues or timerfds do not have devices associated with them. Dereferencing that pointer prior to checking if we have device fd in the first place is a recipe for crashes.
Merged, thanks.
Signature · 1 line
Philippe.