http://git.etherboot.org
/
people
/
pcmattman
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e25a89
)
Use list_for_each_entry_safe() when flushing queue.
author
Michael Brown
<mcb30@etherboot.org>
Sat, 19 May 2007 22:05:16 +0000
(22:05 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Sat, 19 May 2007 22:05:16 +0000
(22:05 +0000)
src/core/posix_io.c
patch
|
blob
|
history
diff --git
a/src/core/posix_io.c
b/src/core/posix_io.c
index
a8876b7
..
b98766f
100644
(file)
--- a/
src/core/posix_io.c
+++ b/
src/core/posix_io.c
@@
-75,8
+75,9
@@
static void posix_file_free ( struct refcnt *refcnt ) {
struct posix_file *file =
container_of ( refcnt, struct posix_file, refcnt );
struct io_buffer *iobuf;
+ struct io_buffer *tmp;
- list_for_each_entry
( iobuf
, &file->data, list ) {
+ list_for_each_entry
_safe ( iobuf, tmp
, &file->data, list ) {
free_iob ( iobuf );
}
free ( file );