hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/infiniband/hw/cxgb4/resource.c
....@@ -126,7 +126,7 @@
126126 rdev->stats.qid.cur += rdev->qpmask + 1;
127127 mutex_unlock(&rdev->stats.lock);
128128 for (i = qid+1; i & rdev->qpmask; i++) {
129
- entry = kmalloc(sizeof *entry, GFP_KERNEL);
129
+ entry = kmalloc(sizeof(*entry), GFP_KERNEL);
130130 if (!entry)
131131 goto out;
132132 entry->qid = i;
....@@ -137,13 +137,13 @@
137137 * now put the same ids on the qp list since they all
138138 * map to the same db/gts page.
139139 */
140
- entry = kmalloc(sizeof *entry, GFP_KERNEL);
140
+ entry = kmalloc(sizeof(*entry), GFP_KERNEL);
141141 if (!entry)
142142 goto out;
143143 entry->qid = qid;
144144 list_add_tail(&entry->entry, &uctx->qpids);
145145 for (i = qid+1; i & rdev->qpmask; i++) {
146
- entry = kmalloc(sizeof *entry, GFP_KERNEL);
146
+ entry = kmalloc(sizeof(*entry), GFP_KERNEL);
147147 if (!entry)
148148 goto out;
149149 entry->qid = i;
....@@ -165,7 +165,7 @@
165165 {
166166 struct c4iw_qid_list *entry;
167167
168
- entry = kmalloc(sizeof *entry, GFP_KERNEL);
168
+ entry = kmalloc(sizeof(*entry), GFP_KERNEL);
169169 if (!entry)
170170 return;
171171 pr_debug("qid 0x%x\n", qid);
....@@ -200,7 +200,7 @@
200200 rdev->stats.qid.cur += rdev->qpmask + 1;
201201 mutex_unlock(&rdev->stats.lock);
202202 for (i = qid+1; i & rdev->qpmask; i++) {
203
- entry = kmalloc(sizeof *entry, GFP_KERNEL);
203
+ entry = kmalloc(sizeof(*entry), GFP_KERNEL);
204204 if (!entry)
205205 goto out;
206206 entry->qid = i;
....@@ -211,13 +211,13 @@
211211 * now put the same ids on the cq list since they all
212212 * map to the same db/gts page.
213213 */
214
- entry = kmalloc(sizeof *entry, GFP_KERNEL);
214
+ entry = kmalloc(sizeof(*entry), GFP_KERNEL);
215215 if (!entry)
216216 goto out;
217217 entry->qid = qid;
218218 list_add_tail(&entry->entry, &uctx->cqids);
219
- for (i = qid; i & rdev->qpmask; i++) {
220
- entry = kmalloc(sizeof *entry, GFP_KERNEL);
219
+ for (i = qid + 1; i & rdev->qpmask; i++) {
220
+ entry = kmalloc(sizeof(*entry), GFP_KERNEL);
221221 if (!entry)
222222 goto out;
223223 entry->qid = i;
....@@ -239,7 +239,7 @@
239239 {
240240 struct c4iw_qid_list *entry;
241241
242
- entry = kmalloc(sizeof *entry, GFP_KERNEL);
242
+ entry = kmalloc(sizeof(*entry), GFP_KERNEL);
243243 if (!entry)
244244 return;
245245 pr_debug("qid 0x%x\n", qid);