commit | 364751e0290afc500d0065d72c08667a088b06bc | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | Fri Jan 25 16:44:04 2019 +0300 |
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Tue Jan 29 09:18:43 2019 +0200 |
tree | 9caaf2299404f6193bf5c881e0bd5ffd82348aa9 | |
parent | 43a431e14907e1d2e36a3da1a1b05bb837ca7630 [diff] |
drivers: eth_mcux: Optimize check if received frame too large For some reason, there was sequence like: 1. Get size of RX packet. 2. Allocate pkt buffer. 3. Check if the size of RX packet is too large, then deallocate pkt buffer and error out. Instead, reorder operations to check size before allocating buf. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>