Repository navigation
Commit f408c3d
committed
Merge branch 'spider_net'
Antoine Tenart says:
====================
net: spider_net: fix possible bitops errors
Dan reported a possible signedness issue on the pxa168_eth driver. While
having a look at it, I came across a similar problem in the spider_net
driver.
Here is one proposal to fix it. The first patch rework the
spider_net_set_mac() function by removing the spider_net_get_mac_address()
call and using memcpy() to set netdev->dev_addr (which is what's done in
lots of Ethernet drivers) and the second one fix the actual signedness
issue.
If for any reason you really want to keep a call to
spider_net_get_mac_address() because the memcpy() is somehow not good
enough here, we can also come up with a solution involving a temporary
unsigned char variable.
I couldn't test these changes, so please do.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>1 file changed
Lines changed: 5 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | 269 | | |
298 | 270 | | |
299 | 271 | | |
| |||
1345 | 1317 | | |
1346 | 1318 | | |
1347 | 1319 | | |
| 1320 | + | |
| 1321 | + | |
1348 | 1322 | | |
1349 | 1323 | | |
1350 | 1324 | | |
1351 | 1325 | | |
1352 | 1326 | | |
1353 | 1327 | | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
1357 | 1331 | | |
1358 | 1332 | | |
1359 | 1333 | | |
| |||
1364 | 1338 | | |
1365 | 1339 | | |
1366 | 1340 | | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | 1341 | | |
1374 | 1342 | | |
1375 | 1343 | | |
| |||
0 commit comments