i8255x: Fail graciously when out of mem.

git-svn-id: svn://kolibrios.org@5561 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2015-05-28 10:43:00 +00:00
parent c5df59af4b
commit c9d8d9f37b

View File

@ -822,6 +822,8 @@ int_handler:
; allocate new descriptor
invoke NetAlloc, 2000
test eax, eax
jz .out_of_mem
mov [ebx + device.rx_desc], eax
mov esi, eax
invoke GetPhysAddr
@ -845,6 +847,7 @@ int_handler:
mov ax, RX_START
out dx, ax
call cmd_wait
.out_of_mem:
; And give packet to kernel
jmp [EthInput]