mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add XXX comment about findcdev() misuse.
This commit is contained in:
parent
e53915c97f
commit
41befa53a4
1 changed files with 6 additions and 0 deletions
|
|
@ -364,6 +364,12 @@ linux_ustat(struct thread *td, struct linux_ustat_args *args)
|
|||
* struct cdev *. The struct cdev *that is used now may as well be a truncated
|
||||
* struct cdev *returned from previous syscalls. Just return a bzeroed
|
||||
* ustat in that case.
|
||||
*
|
||||
* XXX: findcdev() SHALL not be used this way. Somebody (TM) will
|
||||
* have to find a better way. It may be that we should stick
|
||||
* a dev_t into struct mount, and walk the mountlist for a
|
||||
* perfect match and failing that try again looking for a
|
||||
* minor-truncated match.
|
||||
*/
|
||||
dev = findcdev(makedev(args->dev >> 8, args->dev & 0xFF));
|
||||
if (dev != NULL && vfinddev(dev, &vp)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue