|
From: | Axel Lin |
Subject: | [lwip-devel] [patch #8817] Catch tcpip_callback call failure |
Date: | Tue, 01 Dec 2015 12:52:16 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 |
URL: <http://savannah.nongnu.org/patch/?8817> Summary: Catch tcpip_callback call failure Project: lwIP - A Lightweight TCP/IP stack Submitted by: axellin Submitted on: Tue 01 Dec 2015 12:52:14 PM GMT Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Details: tcpip_callback_with_block() can fail with ERR_MEM or ERR_VAL, and in the error paths the code does not post the msg to the mailbox thus the sys_sem_wait() call might wait forever. Fix it by testing return value of tcpip_callback() and return error immediately. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 01 Dec 2015 12:52:14 PM GMT Name: 0001-Catch-tcpip_callback-call-failure.patch Size: 3kB By: axellin <http://savannah.nongnu.org/patch/download.php?file_id=35606> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?8817> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |