12 Jan, 2017

3 commits

  • We set info.count to 1 in mtty_get_irq_info() so static checkers
    complain that, "Why do we have impossible conditions?" The answer is
    that it seems to be left over dead code that can be safely removed.

    Signed-off-by: Dan Carpenter
    Reviewed-by: Kirti Wankhede
    Signed-off-by: Alex Williamson

    Dan Carpenter
     
  • This is a sample driver for documentation so the impact is probably
    pretty low. But we should check that bar_index is valid so we
    don't write beyond the end of the mdev_state->region_info[] array.

    Fixes: 9d1a546c53b4 ("docs: Sample driver to demonstrate how to use Mediated device framework.")
    Signed-off-by: Dan Carpenter
    Reviewed-by: Kirti Wankhede
    Signed-off-by: Alex Williamson

    Dan Carpenter
     
  • The copy_to_user() function returns the number of bytes which it wasn't
    able to copy but we want to return a negative error code.

    Fixes: 9d1a546c53b4 ("docs: Sample driver to demonstrate how to use Mediated device framework.")
    Signed-off-by: Dan Carpenter
    Reviewed-by: Kirti Wankhede
    Signed-off-by: Alex Williamson

    Dan Carpenter
     

04 Jan, 2017

1 commit


30 Dec, 2016

4 commits


18 Nov, 2016

1 commit