OpenCores
URL https://opencores.org/ocsvn/fade_ether_protocol/fade_ether_protocol/trunk

Subversion Repositories fade_ether_protocol

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 47 to Rev 48
    Reverse comparison

Rev 47 → Rev 48

/fade_ether_protocol/trunk/stable_jumbo_frames_version/linux/fpga_l3_fade.c
20,6 → 20,7
 
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/version.h>
#include <linux/sched.h>
#include <asm/uaccess.h>
 
375,7 → 376,11
void * res = (void *) arg;
long res2;
struct l3_v1_buf_pointers bp;
#if LINUX_VERSION_CODE >= 0x50000
if (!access_ok(res,sizeof(bp))) {
#else
if (!access_ok(VERIFY_WRITE,res,sizeof(bp))) {
#endif
return -EFAULT;
} else {
read_lock_bh(&sd->ptrs_lock);
439,7 → 444,11
struct l3_v1_slave sl;
struct net_device *dev = NULL;
long res2;
#if LINUX_VERSION_CODE >= 0x50000
if (!access_ok(source,sizeof(sl))) {
#else
if (!access_ok(VERIFY_READ,source,sizeof(sl))) {
#endif
return -EFAULT;
}
/* First deactivate the slave to avoid situation where data are modified

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.