Skip to contentSkip to conversation

There is an advice

DISCUSSION liyiming 2 participants 2 messages Jan 5, 2007 – Jan 25, 2007 MD RAID

lore
Share & tools
lore

liyiming

author
#0 lore raw

In the stop function of any level raid device driver such as faulty, multipath, and raidx It would better set the mddev->private NULL before free the conf structure.

--------------
liyiming
2007-01-05

#1 lore raw
Quoted 2 lines · On Friday January 5, [email protected] wrote:

In the stop function of any level raid device driver such as faulty, multipath, and raidx It would better set the mddev->private NULL before free the conf structure.

We set it to NULL immediately after the free, and it really doesn't make any different which order they are done in.

NeilBrown