Skip to contentSkip to conversation

Janitor-like typo in expand_kiobuf

DISCUSSION Davide Rossetti 1 participant 1 message Mar 10, 2004

lore
Share & tools
lore
#0 lore raw

int expand_kiobuf(struct kiobuf *iobuf, int wanted) {
struct page ** maplist;

if (iobuf->array_len >= wanted)

       return 0;
   maplist = kmalloc(wanted * sizeof(struct page **), GFP_KERNEL);
                                           ^^^^^^^^^^^^^^

I know that it is the same, but shouldn't it be 'sizeof(struct page *)' ?? regards
d.