aboutsummaryrefslogtreecommitdiffstats
path: root/core/fs/pxe/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/fs/pxe/tcp.c')
-rw-r--r--core/fs/pxe/tcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fs/pxe/tcp.c b/core/fs/pxe/tcp.c
index 109f803d..759ec9f3 100644
--- a/core/fs/pxe/tcp.c
+++ b/core/fs/pxe/tcp.c
@@ -25,14 +25,14 @@ void tcp_close_file(struct inode *inode)
{
struct pxe_pvt_inode *socket = PVT(inode);
- if (socket->buf) {
- netbuf_delete(socket->buf);
- socket->buf = NULL;
- }
if (socket->conn) {
netconn_delete(socket->conn);
socket->conn = NULL;
}
+ if (socket->buf) {
+ netbuf_delete(socket->buf);
+ socket->buf = NULL;
+ }
}
void tcp_fill_buffer(struct inode *inode)