uhci: Fix null pointer dereference.
Found by: Coverity scan.
This commit is contained in:
parent
3661261fe1
commit
9ff9d5a54e
1 changed files with 1 additions and 3 deletions
|
@ -625,9 +625,7 @@ grub_uhci_check_transfer (grub_usb_controller_t dev,
|
|||
return GRUB_USB_ERR_NONE;
|
||||
}
|
||||
|
||||
grub_dprintf ("uhci", "t status=0x%02x\n", errtd->ctrl_status);
|
||||
|
||||
if (!(errtd->ctrl_status & (1 << 23)))
|
||||
if (errtd && !(errtd->ctrl_status & (1 << 23)))
|
||||
{
|
||||
grub_usb_err_t err = GRUB_USB_ERR_NONE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue