equal
deleted
inserted
replaced
363 |
363 |
364 count = data_size / 8; |
364 count = data_size / 8; |
365 |
365 |
366 if (count) { |
366 if (count) { |
367 total_count = count + slave->sii.sync_count; |
367 total_count = count + slave->sii.sync_count; |
368 if (total_count > EC_MAX_SYNCS) { |
368 if (total_count > EC_MAX_SYNC_MANAGERS) { |
369 EC_ERR("Exceeded maximum number of sync managers!\n"); |
369 EC_ERR("Exceeded maximum number of sync managers!\n"); |
370 return -1; |
370 return -1; |
371 } |
371 } |
372 memsize = sizeof(ec_sync_t) * total_count; |
372 memsize = sizeof(ec_sync_t) * total_count; |
373 if (!(syncs = kmalloc(memsize, GFP_KERNEL))) { |
373 if (!(syncs = kmalloc(memsize, GFP_KERNEL))) { |