Revision d59f8ba9 hw/usb-net.c

b/hw/usb-net.c
1142 1142
                break;
1143 1143

  
1144 1144
            default:
1145
                if (usb_net_stringtable[value & 0xff]) {
1145
                if (ARRAY_SIZE(usb_net_stringtable) > (value & 0xff)) {
1146 1146
                    ret = set_usb_string(data,
1147 1147
                                    usb_net_stringtable[value & 0xff]);
1148 1148
                    break;

Also available in: Unified diff