Skip to content
Snippets Groups Projects
Commit 29481ce0 authored by chrfranke's avatar chrfranke
Browse files

Fix auto_ptr initialization in linux_scsi_device::autodetect_open().

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2974 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 8f6b4a32
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,8 @@ NOTES FOR FUTURE RELEASES: see TODO file. ...@@ -43,6 +43,8 @@ NOTES FOR FUTURE RELEASES: see TODO file.
<DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE> <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
[CF] Fix auto_ptr initialization in linux_scsi_device::autodetect_open().
[CF] Remove duplicate function smart_device_list::add(). [CF] Remove duplicate function smart_device_list::add().
Replace calls with push_back(). Replace calls with push_back().
......
...@@ -2689,8 +2689,7 @@ smart_device * linux_scsi_device::autodetect_open() ...@@ -2689,8 +2689,7 @@ smart_device * linux_scsi_device::autodetect_open()
//pout("Device %s: using '-d marvell' for ATA disk with Marvell driver\n", get_dev_name()); //pout("Device %s: using '-d marvell' for ATA disk with Marvell driver\n", get_dev_name());
close(); close();
smart_device_auto_ptr newdev( smart_device_auto_ptr newdev(
new linux_marvell_device(smi(), get_dev_name(), get_req_type()), new linux_marvell_device(smi(), get_dev_name(), get_req_type())
this
); );
newdev->open(); // TODO: Can possibly pass open fd newdev->open(); // TODO: Can possibly pass open fd
delete this; delete this;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment