master/foe_request.c
changeset 1543 373cd456dc26
parent 1465 3099d78343ea
child 1975 8e173dddd183
equal deleted inserted replaced
1528:dbc617badc33 1543:373cd456dc26
   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;