mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-10 07:29:40 +00:00
rtl8188eu: Place guard code in _rtw_open_pktfile()
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
ce54314518
commit
0ebfaa07e4
1 changed files with 8 additions and 0 deletions
|
@ -40,6 +40,14 @@ uint rtw_remainder_len(struct pkt_file *pfile)
|
||||||
void _rtw_open_pktfile(struct sk_buff *pktptr, struct pkt_file *pfile)
|
void _rtw_open_pktfile(struct sk_buff *pktptr, struct pkt_file *pfile)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (!pktptr) {
|
||||||
|
pr_err("8188eu: pktptr is NULL\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!pfile) {
|
||||||
|
pr_err("8188eu: pfile is NULL\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
pfile->pkt = pktptr;
|
pfile->pkt = pktptr;
|
||||||
pfile->cur_addr = pktptr->data;
|
pfile->cur_addr = pktptr->data;
|
||||||
pfile->buf_start = pktptr->data;
|
pfile->buf_start = pktptr->data;
|
||||||
|
|
Loading…
Reference in a new issue