commit | 60ae36ad0340b1ba88530d6a5e141455dd3afd81 | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@toxicpanda.com> | Fri Apr 28 09:49:19 2017 -0400 |
committer | Jens Axboe <axboe@fb.com> | Fri Apr 28 08:04:01 2017 -0600 |
tree | 53c39316d3556a156734ef78ab5300874ff53d6a | |
parent | bf290f8f98b1a22fe131fa517ef66efb846cf849 [diff] |
nbd: fix use after free on module unload list_for_each_entry() isn't super safe if we're freeing the objects while we traverse the list. Also don't bother taking the extra reference, the module refcounting stuff will save us from having anybody messing with the device while we're trying to unload. Reported-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>