Skip to contentSkip to conversation

Jan Kiszka : cobalt/rtdm: Avoid dereferencing NULL device in __rtdm_dev_ioctl_core

Xenomai Philippe Gerum 1 participant 1 message Dec 1, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Philippe Gerum

author Applied
#1 lore raw
Quoted 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=dfec6f1f9448b4e207e36280a0e48923687a1cee
Author: 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_core

File 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.