devvn_refthread() will initialize *devp only if it suceeds, so check for
success before comparing with fp->f_data. Other devfs_fp_check()
callers are careful to do this.
Reported by: KMSAN
Differential D30068
devfs: Avoid comparison with an uninitialized var in devfs_fp_check() markj on May 1 2021, 2:19 PM. Authored by Tags None Referenced Files
Subscribers
Details devvn_refthread() will initialize *devp only if it suceeds, so check for Reported by: KMSAN
Diff Detail
|