Home
last modified time | relevance | path

Searched refs:old_hdr (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/scsi/
Dsg.c421 struct sg_header *old_hdr = NULL; in sg_read() local
440 old_hdr = kmalloc(SZ_SG_HEADER, GFP_KERNEL); in sg_read()
441 if (!old_hdr) in sg_read()
443 if (__copy_from_user(old_hdr, buf, SZ_SG_HEADER)) { in sg_read()
447 if (old_hdr->reply_len < 0) { in sg_read()
465 req_pack_id = old_hdr->pack_id; in sg_read()
495 if (old_hdr == NULL) { in sg_read()
496 old_hdr = kmalloc(SZ_SG_HEADER, GFP_KERNEL); in sg_read()
497 if (! old_hdr) { in sg_read()
502 memset(old_hdr, 0, SZ_SG_HEADER); in sg_read()
[all …]