equal
deleted
inserted
replaced
112 return 0; |
112 return 0; |
113 |
113 |
114 ec_foe_request_clear_data(req); |
114 ec_foe_request_clear_data(req); |
115 |
115 |
116 if (!(req->buffer = (uint8_t *) kmalloc(size, GFP_KERNEL))) { |
116 if (!(req->buffer = (uint8_t *) kmalloc(size, GFP_KERNEL))) { |
117 EC_ERR("Failed to allocate %u bytes of FoE memory.\n", size); |
117 EC_ERR("Failed to allocate %zu bytes of FoE memory.\n", size); |
118 return -1; |
118 return -1; |
119 } |
119 } |
120 |
120 |
121 req->buffer_size = size; |
121 req->buffer_size = size; |
122 req->data_size = 0; |
122 req->data_size = 0; |