]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299373: Allow sleepable allocations in enclosure daemon threads.
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 24 May 2016 07:21:23 +0000 (07:21 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 24 May 2016 07:21:23 +0000 (07:21 +0000)
commita576a7ef745093f2e4bb502b93a3b342af63cd7c
treefa9430928ec12fbcb4869a7c9dc6c71573d72e17
parent774809a2d8a8dca856287c9ff8b165a50db0ea41
MFC r299373: Allow sleepable allocations in enclosure daemon threads.

There were at least two places where M_NOWAIT was used without NULL check.
This change should fix NULL-dereference panic there and possibly improve
operation in other ways under memory pressure.

git-svn-id: svn://svn.freebsd.org/base/stable/10@300589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cam/scsi/scsi_enc_safte.c
sys/cam/scsi/scsi_enc_ses.c