Skip to content

Instantly share code, notes, and snippets.

View displague's full-sized avatar
🐝
Mergin' 🎶 on a Sunday afternoon 🎶

Marques Johansson displague

🐝
Mergin' 🎶 on a Sunday afternoon 🎶
View GitHub Profile
--- a/drivers/net/xen-netfront.c 2014-10-31 15:33:16.000000000 -0400
+++ b/drivers/net/xen-netfront.c 2014-10-31 15:36:04.000000000 -0400
@@ -497,7 +497,13 @@
offset = frag->page_offset;
/* Data must not cross a page boundary. */
- BUG_ON(len + offset > PAGE_SIZE<<compound_order(page));
+ // BUG_ON(len + offset > PAGE_SIZE<<compound_order(page));
+ if (len + offset > PAGE_SIZE<<compound_order(page)) {
+ netdev_err(queue->info->netdev, "len %d offset %d order %d PageHead %d i %d nr_frags %d \n",

Keybase proof

I hereby claim:

  • I am displague on github.
  • I am marques (https://keybase.io/marques) on keybase.
  • I have a public key whose fingerprint is CF2B 41F9 641B C514 131F 0534 2771 7999 E2D0 9AB6

To claim this, I am signing this object:

# encoding: utf-8
xml.instruct!
# Drop this file in your source directory
#
# Uses the builder gem.
# Add
# gem 'builder', '~> 2.0'
# to the Gemfile, and run builder install
#
@displague
displague / mssql_helper.php
Created July 26, 2012 03:56
PDO_SQLSRV wrapper for legacy MSSQL PHP database functions
<?php
if (! extension_loaded('mssql') && extension_loaded('pdo_sqlsrv')) {
//Return an associative array. Used on mssql_fetch_array()'s result_type parameter.
define('MSSQL_ASSOC', '1');
//Return an array with numeric keys. Used on mssql_fetch_array()'s result_type parameter.
define('MSSQL_NUM', '2');
//Return an array with both numeric keys and keys with their field name. This is the default value for mssql_fetch_array()'s result_type parameter.