NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/52643: npfctl reload on rump kernels fails randomly



On Oct 27, 12:41pm, ozaki-r%netbsd.org@localhost (Ryota Ozaki) wrote:
-- Subject: Re: kern/52643: npfctl reload on rump kernels fails randomly

| Further investigations found the following requirements:
| - prop_object_release(errdict) must be always called
|   because errdict = prop_dictionary_create() is always called
| - prop_object_release(npf_dict) needs to be called only if
|   npf_dict is allocated by prop_dictionary_copyin_ioctl_size
| - _NPF_STANDALONE doesn't require to set prop
| - For _NPF_TESTING, if npfctl_testing, setting prop isn't
|   needed, otherwise it's needed
| 
| So I think a fix looks like the following patch. Comments?

Go for it, add the big fat comment above to the patch though :-)

christos


Home | Main Index | Thread Index | Old Index