Page MenuHomeFreeBSD

hyperv: stor: Fix the NULL pointer dereference
ClosedPublic

Authored by honzhan_microsoft.com on Jan 28 2016, 1:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 22, 3:06 PM
Unknown Object (File)
Tue, Dec 31, 8:16 PM
Unknown Object (File)
Dec 10 2024, 11:02 AM
Unknown Object (File)
Nov 16 2024, 5:11 PM
Unknown Object (File)
Nov 16 2024, 6:31 AM
Unknown Object (File)
Oct 2 2024, 3:09 PM
Unknown Object (File)
Sep 29 2024, 11:27 PM
Unknown Object (File)
Sep 26 2024, 5:40 AM

Details

Summary

There are potential NULL pointer dereference issues.

Submitted by: Hongjiang Zhang <honzhan microsoft com>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

honzhan_microsoft.com retitled this revision from to hyperv: stor: Fix the NULL pointer dereference.
honzhan_microsoft.com updated this object.
adrian edited edge metadata.
This revision is now accepted and ready to land.Jan 28 2016, 1:54 AM
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1529 ↗(On Diff #12773)

Could we just move the LIST_REMOVE after the NULL check?

sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1529 ↗(On Diff #12773)

Yes, that is ok. But I prefer to do checking with the LIST macros.

sepherosa_gmail.com edited edge metadata.

Looks fine to me

sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1529 ↗(On Diff #12773)

Well, fine, its your call.

This revision was automatically updated to reflect the committed changes.