Changeset 0aae151 in rtems for bsps


Ignore:
Timestamp:
Aug 13, 2018, 9:36:03 AM (13 months ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
master
Children:
227b145
Parents:
ddc95ab0
git-author:
Daniel Hellstrom <daniel@…> (08/13/18 09:36:03)
git-committer:
Daniel Hellstrom <daniel@…> (09/20/18 10:48:32)
Message:

leon,grspw_pkt: protect TX descriptor from bad input (hdrlen)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/sparc/shared/spw/grspw_pkt.c

    rddc95ab0 r0aae151  
    14711471                        }
    14721472                        BD_WRITE(&curr_bd->bd->haddr, hwaddr);
    1473                         ctrl = GRSPW_TXBD_EN | curr_pkt->hlen;
     1473                        ctrl = GRSPW_TXBD_EN |
     1474                               (curr_pkt->hlen & GRSPW_TXBD_HLEN);
    14741475                } else {
    14751476                        ctrl = GRSPW_TXBD_EN;
Note: See TracChangeset for help on using the changeset viewer.