kernel/drivers/scsi/be2iscsi/be_iscsi.c
.. .. @@ -450,6 +450,10 @@ 450 450 } 451 451 452 452 nla_for_each_attr(attrib, data, dt_len, rm_len) { 453 + /* ignore nla_type as it is never used */454 + if (nla_len(attrib) < sizeof(*iface_param))455 + return -EINVAL;456 +453 457 iface_param = nla_data(attrib); 454 458 455 459 if (iface_param->param_type != ISCSI_NET_PARAM)