X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmmc%2Fhost%2Fushc.c;h=82f5726395f1af02b5ea14c77510066b3f496b5c;hb=e4254574140b66c8c4874a2eff9dcff12019abe8;hp=f08f944ac53c64f5cc57877eaefcb9ec02c96c99;hpb=1b4610ebf37a05a65e9f29cdf4d87c207573104d;p=pandora-kernel.git diff --git a/drivers/mmc/host/ushc.c b/drivers/mmc/host/ushc.c index f08f944ac53c..82f5726395f1 100644 --- a/drivers/mmc/host/ushc.c +++ b/drivers/mmc/host/ushc.c @@ -426,6 +426,9 @@ static int ushc_probe(struct usb_interface *intf, const struct usb_device_id *id struct ushc_data *ushc; int ret; + if (intf->cur_altsetting->desc.bNumEndpoints < 1) + return -ENODEV; + mmc = mmc_alloc_host(sizeof(struct ushc_data), &intf->dev); if (mmc == NULL) return -ENOMEM;