LWN.net Logo

sdb_init() - Queue removal on error

sdb_init() - Queue removal on error

Posted Nov 6, 2007 16:54 UTC (Tue) by bigguiness (guest, #48829)
Parent article: A simple block driver

Just a minor comment/question.

In the sbd_init() function, if the register_blkdev() call fails shouldn't the Queue be removed
(blk_cleanup_queue(Queue);) before the function exits?


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds