Correct typo in the name of the type given to sizeof. Because it is the size of a pointer that is wanted, the typo has no impact on compilation or execution. This problem was found using Coccinelle (http://coccinelle.lip6.fr/). The semantic patch used can be found in message 0 of this patch series.
Unified · Split
| @@ -1260,7 +1260,7 @@ static int __init capinc_tty_init(void) · 1259 unmodified lines | |||
| 1260 | if (capi_ttyminors <= 0) | 1260 | if (capi_ttyminors <= 0) |
| 1261 | capi_ttyminors = CAPINC_NR_PORTS; | 1261 | capi_ttyminors = CAPINC_NR_PORTS; |
| 1262 | 1262 | ||
| 1263 | capiminors = kzalloc(sizeof(struct capi_minor *) * capi_ttyminors, | 1263 | capiminors = kzalloc(sizeof(struct capiminor *) * capi_ttyminors, |
| 1264 | GFP_KERNEL); | 1264 | GFP_KERNEL); |
| 1265 | if (!capiminors) | 1265 | if (!capiminors) |
| 1266 | return -ENOMEM; | 1266 | return -ENOMEM; |