Bug 82981 - dma/iop-adma.c:1129: possible bad parameter in memset ?
Summary: dma/iop-adma.c:1129: possible bad parameter in memset ?
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-21 17:05 UTC by David Binderman
Modified: 2014-08-21 17:05 UTC (History)
0 users

See Also:
Kernel Version: 3.17-rc1
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description David Binderman 2014-08-21 17:05:50 UTC
[linux-3.17-rc1/drivers/dma/iop-adma.c:1129]: (warning) The 2nd memset() argument '286331153' doesn't fit into an 'unsigned char'.

  memset(pq_sw[i], 0x11111111 * (1<<i), PAGE_SIZE);

Maybe

  memset(pq_sw[i], 0x11111111 & (1<<i), PAGE_SIZE);

was intended.

Note You need to log in before you can comment on or make changes to this bug.